Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: reference to const int Pin
CPallini9-May-12 22:53
mveCPallini9-May-12 22:53 
AnswerRe: reference to const int - more Pin
Richard MacCutchan10-May-12 0:32
mveRichard MacCutchan10-May-12 0:32 
GeneralRe: reference to const int - more Pin
Aabid10-May-12 1:06
Aabid10-May-12 1:06 
GeneralRe: reference to const int - more Pin
Richard MacCutchan10-May-12 1:12
mveRichard MacCutchan10-May-12 1:12 
GeneralRe: reference to const int - more Pin
Aabid10-May-12 1:36
Aabid10-May-12 1:36 
GeneralRe: reference to const int - more Pin
Richard MacCutchan10-May-12 2:23
mveRichard MacCutchan10-May-12 2:23 
AnswerRe: reference to const int Pin
Aescleal10-May-12 4:56
Aescleal10-May-12 4:56 
AnswerRe: reference to const int Pin
jschell10-May-12 9:23
jschell10-May-12 9:23 
Aabid wrote:
the code declares a const integer and a reference to it. incrementing a reference adds 1 to j and outputs as 11, that is fine.


I don't see that it is "fine".

The code is wrong - it shouldn't be written like that in the first place.
Once one starts with that then the resulting behavior no longer matters.

There are an infinite number of ways to write code incorrectly. There is a large, but finite, number of ways to write code correctly. Myself I don't care what the compiler does with incorrect code.
Questionuse mfc open "*.ppt"--can "use" the ppt Pin
wangafei9-May-12 21:07
wangafei9-May-12 21:07 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
ThatsAlok9-May-12 21:08
ThatsAlok9-May-12 21:08 
GeneralRe: use mfc open "*.ppt"--can "use" the ppt Pin
wangafei9-May-12 21:13
wangafei9-May-12 21:13 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
David Crow10-May-12 2:37
David Crow10-May-12 2:37 
AnswerRe: use mfc open "*.ppt"--can "use" the ppt Pin
Malli_S10-May-12 0:55
Malli_S10-May-12 0:55 
Questioncreating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:01
Rajeev.Goutham9-May-12 21:01 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok9-May-12 21:11
ThatsAlok9-May-12 21:11 
GeneralRe: creating a dialog in non mfc application Pin
wangafei9-May-12 21:15
wangafei9-May-12 21:15 
GeneralRe: creating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:22
Rajeev.Goutham9-May-12 21:22 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok9-May-12 22:57
ThatsAlok9-May-12 22:57 
GeneralRe: creating a dialog in non mfc application Pin
wangafei10-May-12 16:40
wangafei10-May-12 16:40 
AnswerRe: creating a dialog in non mfc application Pin
ThatsAlok10-May-12 19:57
ThatsAlok10-May-12 19:57 
GeneralRe: creating a dialog in non mfc application Pin
Rajeev.Goutham9-May-12 21:24
Rajeev.Goutham9-May-12 21:24 
QuestionDrawimage Pin
john56329-May-12 2:09
john56329-May-12 2:09 
AnswerRe: Drawimage Pin
Anu_Bala9-May-12 2:19
Anu_Bala9-May-12 2:19 
GeneralMessage Removed Pin
9-May-12 2:28
john56329-May-12 2:28 
GeneralRe: Drawimage Pin
Anu_Bala9-May-12 2:36
Anu_Bala9-May-12 2:36 

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.