fork download
  1. class A
  2. {
  3. public:
  4. void test(){printf("test %d", x);}
  5. int x;
  6. };
  7.  
  8. int main()
  9. {
  10. A *a;
  11. A *aa = new A;
  12. a->test();
  13. aa->test();
  14. }
  15.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty