Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: syntax question Pin
Johann Gerell26-Apr-03 2:42
Johann Gerell26-Apr-03 2:42 
GeneralRe: syntax question Pin
Lior Shoval26-Apr-03 4:47
Lior Shoval26-Apr-03 4:47 
GeneralRe: syntax question Pin
Johann Gerell26-Apr-03 10:23
Johann Gerell26-Apr-03 10:23 
GeneralRe: syntax question Pin
Lior Shoval26-Apr-03 4:49
Lior Shoval26-Apr-03 4:49 
GeneralRe: syntax question Pin
Gary R. Wheeler26-Apr-03 5:27
Gary R. Wheeler26-Apr-03 5:27 
GeneralRe: syntax question Pin
Lior Shoval26-Apr-03 5:31
Lior Shoval26-Apr-03 5:31 
GeneralRe: syntax question Pin
User 665826-Apr-03 6:37
User 665826-Apr-03 6:37 
GeneralRe: syntax question Pin
Gary R. Wheeler27-Apr-03 5:02
Gary R. Wheeler27-Apr-03 5:02 
Yes. The people who use that method like it for that reason.

I don't use the method myself, since it reduces the readability of the conditional expression. For example, the expressions (x == 7) and (7 == x) evaluate the same and produce the same result. If you're reading the code, however, the first expression is read as "if x is equal to 7" and the second expression is read as "if 7 is equal to x". The reading of the second expression seems awkward to me. I prefer to think of testing a variable against a constant.


Software Zen: delete this;
GeneralRe: syntax question Pin
User 665827-Apr-03 8:44
User 665827-Apr-03 8:44 
GeneralRe: syntax question Pin
John R. Shaw28-Apr-03 17:40
John R. Shaw28-Apr-03 17:40 
GeneralRe: syntax question Pin
Hans Dietrich26-Apr-03 21:03
mentorHans Dietrich26-Apr-03 21:03 
GeneralConvert .pdf to .ppt. Pin
Neha25-Apr-03 23:02
Neha25-Apr-03 23:02 
GeneralRe: Convert .pdf to .ppt. Pin
Stephane Rodriguez.25-Apr-03 23:57
Stephane Rodriguez.25-Apr-03 23:57 
GeneralRe: Convert .pdf to .ppt. Pin
Neha26-Apr-03 0:19
Neha26-Apr-03 0:19 
GeneralRe: Convert .pdf to .ppt. Pin
Stephane Rodriguez.26-Apr-03 0:59
Stephane Rodriguez.26-Apr-03 0:59 
QuestionIncluding cpp files? Pin
Dominik Reichl25-Apr-03 21:45
Dominik Reichl25-Apr-03 21:45 
AnswerRe: Including cpp files? Pin
Peter Hancock25-Apr-03 21:55
Peter Hancock25-Apr-03 21:55 
AnswerRe: Including cpp files? Pin
John R. Shaw28-Apr-03 18:28
John R. Shaw28-Apr-03 18:28 
GeneralRe: Including cpp files? Pin
Dominik Reichl30-Apr-03 3:55
Dominik Reichl30-Apr-03 3:55 
GeneralUsing database in a dialog Pin
Scozturk25-Apr-03 21:24
professionalScozturk25-Apr-03 21:24 
GeneralRe: Using database in a dialog Pin
Toni7825-Apr-03 22:17
Toni7825-Apr-03 22:17 
GeneralRe: MFC Pin
Stephane Rodriguez.25-Apr-03 22:39
Stephane Rodriguez.25-Apr-03 22:39 
QuestionHow to customize Print setup dialog Pin
yellowdog25-Apr-03 20:28
yellowdog25-Apr-03 20:28 
GeneralRow Spacing Pin
yellowdog25-Apr-03 20:22
yellowdog25-Apr-03 20:22 
GeneralRe: Row Spacing Pin
Gary R. Wheeler26-Apr-03 5:31
Gary R. Wheeler26-Apr-03 5:31 

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.