Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reference to const int Pin
Code-o-mat10-May-12 9:22
Code-o-mat10-May-12 9:22 
GeneralRe: reference to const int Pin
Aescleal11-May-12 2:17
Aescleal11-May-12 2:17 
GeneralRe: reference to const int Pin
jschell11-May-12 13:21
jschell11-May-12 13:21 
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 
But reference never creates a new variable, it is an alias to the same memory location, if you see the output of the code, you will see "i" and "j" have the same address.

ok, if the following statement creates a new variable, is there any way to get the address of that variable? i tried to print &(int&)i, it still gives the same address as "i" and "j";

int& j = (int&)i;
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 
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 

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.