fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class CSample
  5. {
  6. char* str = "sample";
  7. public:
  8. CSample()
  9. {
  10. }
  11.  
  12. ~CSample()
  13. {
  14. }
  15.  
  16. void print()
  17. {
  18. cout << str << endl;
  19. }
  20. };
  21.  
  22. int main() {
  23. // your code goes here
  24. CSample c;
  25. c.print();
  26.  
  27. return 0;
  28. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
sample