fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class MyStruct {
  5. public:
  6. MyStruct(int a, int b, int c) {
  7. cout << a << b << c << endl;
  8. }
  9. };
  10. int func() {
  11. static int i = 0;
  12. return ++i;
  13. }
  14. int main() {
  15. MyStruct(
  16. func(),
  17. func(),
  18. func()
  19. );
  20. return 0;
  21. }
Success #stdin #stdout 0s 4324KB
stdin
Standard input is empty
stdout
Standard output is empty