fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. class Hello {
  6. public:
  7. string hello();
  8.  
  9. };
  10.  
  11. string Hello::hello() {
  12. return "hello";
  13. }
  14.  
  15.  
  16. int main() {
  17.  
  18. Hello h;
  19. cout << h.hello();
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
hello