fork download
  1. #include <iostream>
  2. #include <cstdio>
  3. using namespace std;
  4. class Test
  5. {
  6. public:
  7. int m_value;
  8. public:
  9. void testA() { printf("A\n"); }
  10. void testB() { printf("B:%d", m_value); }
  11. };
  12.  
  13. int main(int argc, char* argv[])
  14. {
  15. Test* test;
  16. //test->m_value=3;
  17. test->testA();
  18. test->testB();
  19. return 0;
  20. }
Runtime error #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
Standard output is empty