Click here to Skip to main content
15,888,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: returning std::pair Pin
jschell8-Nov-11 9:58
jschell8-Nov-11 9:58 
Questionif(NULL == MyPointer) Pin
User 5838527-Nov-11 15:37
User 5838527-Nov-11 15:37 
AnswerRe: if(NULL == MyPointer) Pin
Dr.Walt Fair, PE7-Nov-11 15:45
professionalDr.Walt Fair, PE7-Nov-11 15:45 
AnswerRe: if(NULL == MyPointer) Pin
Chuck O'Toole7-Nov-11 17:43
Chuck O'Toole7-Nov-11 17:43 
AnswerRe: if(NULL == MyPointer) Pin
«_Superman_»7-Nov-11 18:08
professional«_Superman_»7-Nov-11 18:08 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:46
Stefan_Lang10-Nov-11 3:46 
AnswerRe: if(NULL == MyPointer) Pin
Malli_S8-Nov-11 1:05
Malli_S8-Nov-11 1:05 
AnswerRe: if(NULL == MyPointer) Pin
Eytukan8-Nov-11 7:36
Eytukan8-Nov-11 7:36 
looks like you are new to programming? Not sure, but when I was a fresher I used to hate my colleague writing

if(bCondition)

andI purposefully wrote my lines as

if(bCondition==TRUE)

Then I realized I'm stupid if I followed my "spoken" code way.

So, in short it's the correct form to keep the constant on the left. Don't do the other way and don't hate your colleague Big Grin | :-D

Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

GeneralRe: if(NULL == MyPointer) Pin
Chuck O'Toole8-Nov-11 8:39
Chuck O'Toole8-Nov-11 8:39 
GeneralRe: if(NULL == MyPointer) Pin
David Crow8-Nov-11 8:44
David Crow8-Nov-11 8:44 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:54
Stefan_Lang10-Nov-11 3:54 
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:03
Eytukan10-Nov-11 17:03 
GeneralRe: if(NULL == MyPointer) Pin
User 5838528-Nov-11 11:12
User 5838528-Nov-11 11:12 
AnswerRe: if(NULL == MyPointer) Pin
Chuck O'Toole8-Nov-11 11:55
Chuck O'Toole8-Nov-11 11:55 
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:05
Eytukan10-Nov-11 17:05 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:52
Stefan_Lang10-Nov-11 3:52 
AnswerRe: if(NULL == MyPointer) Pin
Dave Doknjas8-Nov-11 9:51
Dave Doknjas8-Nov-11 9:51 
GeneralRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:38
Stefan_Lang10-Nov-11 3:38 
GeneralRe: if(NULL == MyPointer) Pin
Eytukan10-Nov-11 17:01
Eytukan10-Nov-11 17:01 
AnswerRe: if(NULL == MyPointer) Pin
jschell8-Nov-11 10:03
jschell8-Nov-11 10:03 
AnswerRe: if(NULL == MyPointer) Pin
Stefan_Lang10-Nov-11 3:25
Stefan_Lang10-Nov-11 3:25 
Questionsetup with active x Pin
antonio3437-Nov-11 13:52
antonio3437-Nov-11 13:52 
AnswerRe: setup with active x Pin
Chandrasekharan P7-Nov-11 19:15
Chandrasekharan P7-Nov-11 19:15 
GeneralRe: setup with active x Pin
antonio3437-Nov-11 21:41
antonio3437-Nov-11 21:41 
AnswerRe: setup with active x Pin
Malli_S8-Nov-11 1:17
Malli_S8-Nov-11 1:17 

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.