Click here to Skip to main content
15,860,859 members
Articles / Programming Languages / C++
Alternative
Tip/Trick

"if" with no code block parenthesis

Rate me:
Please Sign up or sign in to vote.
4.95/5 (11 votes)
10 Feb 2011CPOL 13.6K   3   7
Always review all changes before submitting them. Especially, if using a global find and replace.
Always review all changes before submitting them. Especially, if using a global find and replace.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.

So..If you're not moving forward, you're moving backwards.

Comments and Discussions

 
GeneralMy vote of 1 Pin
Nikhil_S5-Dec-12 17:55
professionalNikhil_S5-Dec-12 17:55 
GeneralRe: My vote of 1 Pin
Andrew Rissing6-Dec-12 4:03
Andrew Rissing6-Dec-12 4:03 
GeneralReason for my vote of 4 it's also remind me be careful in th... Pin
Ray112358132110-Oct-11 21:47
Ray112358132110-Oct-11 21:47 
GeneralReason for my vote of 5 agree Pin
kerwin.piao14-Feb-11 19:04
kerwin.piao14-Feb-11 19:04 
GeneralReason for my vote of 5 Changing stuff without looking at th... Pin
Eddy Vluggen12-Feb-11 0:00
professionalEddy Vluggen12-Feb-11 0:00 
GeneralRe: I agree - I always use #define and #if for debug output, and... Pin
jan lucas28-Mar-11 16:37
jan lucas28-Mar-11 16:37 
GeneralReason for my vote of 5 Because all global replace MUST be a... Pin
zvx11-Feb-11 10:53
zvx11-Feb-11 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.