C
Chris
I want to be able to point to a class, so I can change members of that
class with the pointer.
Here is the code:
###
class stuff {
public:
int a;
char b; };
int main() {
stuff junk;
junk.a=23; junk.b='c';
stuff * things = & junk;
*things.a = 1;
return 0; }
###
This is not compiling. Is there something I'm missing, or not
understanding?
Thanks for any help!
-Chris
class with the pointer.
Here is the code:
###
class stuff {
public:
int a;
char b; };
int main() {
stuff junk;
junk.a=23; junk.b='c';
stuff * things = & junk;
*things.a = 1;
return 0; }
###
This is not compiling. Is there something I'm missing, or not
understanding?
Thanks for any help!
-Chris