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

C / C++ / MFC

 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:41
toxcct13-May-04 2:41 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 2:56
Cedric Moonen13-May-04 2:56 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:02
toxcct13-May-04 3:02 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Anonymous13-May-04 3:02
Anonymous13-May-04 3:02 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:04
toxcct13-May-04 3:04 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Anonymous13-May-04 3:05
Anonymous13-May-04 3:05 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 3:09
toxcct13-May-04 3:09 
GeneralRe: A funny thing happened to me. Who can explain? Pin
V.13-May-04 2:43
professionalV.13-May-04 2:43 
if you do this:
int a = 10;
=> a is the value AND &a is the pointer

int* p = 100;
=> *p is the value AND p is the pointer

thus if I see correctly: int* p=(int*)&a; means that *p = 10 (* and & are opposites) and p and &a are still different. (you should do p = &a; if you would like to copy pointers)



Then again I could be mistaken (you always do working with pointers)
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:52
toxcct13-May-04 2:52 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 2:53
Antony M Kancidrowski13-May-04 2:53 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 2:54
Cedric Moonen13-May-04 2:54 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 2:50
Antony M Kancidrowski13-May-04 2:50 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 2:55
toxcct13-May-04 2:55 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 3:22
Antony M Kancidrowski13-May-04 3:22 
AnswerRe: A funny thing happened to me. Who can explain? Pin
nguyenvhn13-May-04 2:58
nguyenvhn13-May-04 2:58 
AnswerRe: A funny thing happened to me. Who can explain? Pin
Christopher Lloyd13-May-04 3:02
Christopher Lloyd13-May-04 3:02 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Cedric Moonen13-May-04 3:09
Cedric Moonen13-May-04 3:09 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 3:53
Antony M Kancidrowski13-May-04 3:53 
GeneralRe: A funny thing happened to me. Who can explain? Pin
Nitron14-May-04 8:37
Nitron14-May-04 8:37 
AnswerRe: A funny thing happened to me. Who can explain? Pin
Antony M Kancidrowski13-May-04 3:19
Antony M Kancidrowski13-May-04 3:19 
AnswerRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 5:17
David Crow13-May-04 5:17 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 5:36
toxcct13-May-04 5:36 
GeneralRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 5:41
David Crow13-May-04 5:41 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 5:44
toxcct13-May-04 5:44 
GeneralRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 6:28
David Crow13-May-04 6:28 

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.