Skip to content

Instantly share code, notes, and snippets.

@robnolen
Created January 18, 2012 17:31
Show Gist options
  • Save robnolen/1634296 to your computer and use it in GitHub Desktop.
Save robnolen/1634296 to your computer and use it in GitHub Desktop.
class Foo
{
public:
int bar;
Foo();
~Foo();
}
int main()
{
int temp;
my_foo = new Foo();
Foo *foo_ptr;
foo_ptr = my_foo;
temp = foo_ptr->bar; //this one?
temp = (*foo_ptr.bar);// or this one?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment