fork download
  1. #include <iostream.h>
  2. class OOP {
  3. int Mark;
  4. public:
  5. OOP(int m) { Mark = m; }
  6. void set_mark(int m){ Mark= m;}
  7. ~OOP(){ cout << Mark <<endl;}
  8. };
  9. void call_me(int x)
  10. {
  11. OOP AAA(5);
  12. if (x%2 == 0) AAA.set_mark(x);
  13. }
  14. void call_me_too(int x)
  15. {
  16. OOP A (1);
  17. OOP AA(2);
  18. OOP AAA(3);
  19. }
  20. int main()
  21. {
  22. OOP BBB(10);
  23. call_me(20);
  24. return 0;
  25.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:22: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
                      ^
compilation terminated.
stdout
Standard output is empty