fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Student { void doWork() { std::cout << "Jestem glodny!" << std::endl; }};
  5.  
  6. void sayHello(Student** s) {
  7. (*s)->doWork();
  8. }
  9.  
  10.  
  11. int main() {
  12. Student* s = new Student;
  13. sayHello(&s);
  14. return 0;
  15. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
Jestem glodny!