fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class daynhauhoc {
  5. private: void say_hello() { cout << "hello\n"; }
  6. public: void do_nothing() {
  7. daynhauhoc dnh;
  8. dnh.say_hello();
  9. }
  10. };
  11.  
  12. int main() {
  13. daynhauhoc ltd;
  14. ltd.do_nothing();
  15. return 0;
  16. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
hello