fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class MyClass {
  5. public: void hi() {
  6. cout << "Hi!" << endl;
  7. }
  8. };
  9.  
  10. MyClass f() {}
  11.  
  12. int main() {
  13. f().hi();
  14. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
Hi!