Search Results

Showing results 1 to 4 of 4
Search took 0.01 seconds.
Search: Posts Made By: sahmedsa
Forum: C++ Aug 6th, 2008
Replies: 1
Views: 280
Posted By sahmedsa
I always see solutions to some questions regarding classes, and they have (*this) , I don't understand when to use it and how to use it. Does it just mean that we're referring to something? Please...
Forum: C++ Jul 24th, 2008
Replies: 5
Views: 531
Posted By sahmedsa
O ok, that makes sense. Thank you for your help, really appreciate it.
Forum: C++ Jul 24th, 2008
Replies: 5
Views: 531
Posted By sahmedsa
ok so basically it means that
*b=&a
b=10
?
Forum: C++ Jul 24th, 2008
Replies: 5
Views: 531
Posted By sahmedsa
int a = 10;
int* b = &a;
int c = 4;
int* d = &c;
(*d)++;
d = b;
*d = c - *b;
cout << a << " " << c;

Output
Showing results 1 to 4 of 4

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC