Forum: C++ Aug 6th, 2008 |
| Replies: 1 Views: 280 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 O ok, that makes sense. Thank you for your help, really appreciate it. |
Forum: C++ Jul 24th, 2008 |
| Replies: 5 Views: 531 ok so basically it means that
*b=&a
b=10
? |
Forum: C++ Jul 24th, 2008 |
| Replies: 5 Views: 531 int a = 10;
int* b = &a;
int c = 4;
int* d = &c;
(*d)++;
d = b;
*d = c - *b;
cout << a << " " << c;
Output |