Click here to Skip to main content
15,917,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about hook api with EAT Pin
David Crow9-Nov-04 2:58
David Crow9-Nov-04 2:58 
GeneralRe: about hook api with EAT Pin
runner1119-Nov-04 19:32
runner1119-Nov-04 19:32 
GeneralRe: about hook api with EAT Pin
David Crow10-Nov-04 2:38
David Crow10-Nov-04 2:38 
GeneralHelp me plase : complex number Pin
TooLeeDiN5-Nov-04 19:41
TooLeeDiN5-Nov-04 19:41 
GeneralRe: Help me plase : complex number Pin
David Crow8-Nov-04 5:40
David Crow8-Nov-04 5:40 
General2 Questions About Pointers Pin
sacoskun5-Nov-04 19:34
sacoskun5-Nov-04 19:34 
GeneralRe: 2 Questions About Pointers Pin
sacoskun5-Nov-04 19:56
sacoskun5-Nov-04 19:56 
GeneralRe: 2 Questions About Pointers Pin
MaNDROiD5-Nov-04 20:45
MaNDROiD5-Nov-04 20:45 
1a. (int &PtrA = a;) In this case "PtrA" is a reference to "a"... sort of like saying they are one in the same. use PtrA in exactly the same way as you would "a". Only thing is that changes to "PtrA" effects "a" and vise versa.

example:
cout << a;
cout << PtrA; // both output the same value.

cout << &a;
cout << &PtrA; // both output the same address.

PtrA = 10; // after this statement both a and PtrA equals 10.
a = 15; // after this statement, both a and PtrA equals 15.

1b. (int *PtrA = &a;) "PtrA" in this case is a pointer to "a." Almost the same as references except in the way you use them.

PtrA // gives the addess of "a"
*PtrA // gives the value of "a"

as opposed to references where
PtrA // gives the value of "a"
&PtrA // gives the address of "a"


cout << *PtrA;
cout << a; //both output the same value.

cout << PtrA;
cout << &a; // both output the same address.

*PtrA = 10; //after this statment both a and *PtrA equals 10
a = 15; // after this statment both a and *PtrA equals 15

2. (*c)+1 adds one to the value of *c first then prints it but it doesn't store the value.

(*c)++ is post incrementing...so it uses value of *c first and then it adds one after the statement. Incrementing also stores the value back into *c. When you use x++ its like saying x = x + 1. So in your case it would be *c = c*+1.

you could use pre increment ++(*c). In this case it increments first and then uses the value. Stores it also...

Hope that wasn't too confusing...=)
GeneralRe: 2 Questions About Pointers Pin
sacoskun5-Nov-04 21:07
sacoskun5-Nov-04 21:07 
GeneralRe: 2 Questions About Pointers Pin
MaNDROiD5-Nov-04 22:41
MaNDROiD5-Nov-04 22:41 
GeneralRe: 2 Questions About Pointers Pin
sacoskun5-Nov-04 23:54
sacoskun5-Nov-04 23:54 
GeneralReading Registry Pin
picasso25-Nov-04 16:49
picasso25-Nov-04 16:49 
GeneralRe: Reading Registry Pin
ThatsAlok5-Nov-04 17:30
ThatsAlok5-Nov-04 17:30 
Questionhow to find IP of internet radio Pin
don7cry5-Nov-04 14:18
don7cry5-Nov-04 14:18 
AnswerRe: how to find IP of internet radio Pin
Archer2826-Nov-04 5:39
Archer2826-Nov-04 5:39 
Generalreading a Device dependent bitmap from clipboard ! Pin
schumi19805-Nov-04 12:19
schumi19805-Nov-04 12:19 
GeneralRe: reading a Device dependent bitmap from clipboard ! Pin
John R. Shaw5-Nov-04 13:02
John R. Shaw5-Nov-04 13:02 
GeneralSystemParametersInfo Pin
Archer2825-Nov-04 12:18
Archer2825-Nov-04 12:18 
GeneralRe: SystemParametersInfo Pin
Yulianto.5-Nov-04 18:23
Yulianto.5-Nov-04 18:23 
Generaltry/catch throw to ifstream error Pin
dbslon25-Nov-04 12:07
dbslon25-Nov-04 12:07 
GeneralRe: try/catch throw to ifstream error Pin
Andrew Walker5-Nov-04 14:29
Andrew Walker5-Nov-04 14:29 
Generalhelp:can't use mktyplib Pin
happycpp5-Nov-04 11:44
happycpp5-Nov-04 11:44 
Generalanothere thread call UpdateAllViews() Pin
LeeeNN5-Nov-04 11:05
LeeeNN5-Nov-04 11:05 
GeneralRe: anothere thread call UpdateAllViews() Pin
John R. Shaw5-Nov-04 12:17
John R. Shaw5-Nov-04 12:17 
GeneralRe: anothere thread call UpdateAllViews() Pin
LeeeNN5-Nov-04 12:35
LeeeNN5-Nov-04 12:35 

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.