Skip to content

Instantly share code, notes, and snippets.

@pmj
Created August 6, 2010 19:49
Show Gist options
  • Save pmj/511884 to your computer and use it in GitHub Desktop.
Save pmj/511884 to your computer and use it in GitHub Desktop.
#include <stdio.h>
class A
{
int answer;
public:
A(int answer) :
answer(answer)
{
printf("%i\n", answer);
printf("%i\n", this->answer);
}
};
int main()
{
A a(42);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment