fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. class Test
  4. {
  5. public:
  6. Test()
  7. {
  8. cout<<"test() is called\n";
  9. }
  10. virtual void test();
  11. };
  12. int main() {
  13. Test t;
  14. // your code goes here
  15. return 0;
  16. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
test() is called