fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. struct A
  7. {
  8. int age;
  9.  
  10. A(int x): age(x){};
  11. A() = default;
  12.  
  13. };
  14.  
  15. int main()
  16. {
  17. A test(10);
  18. cout << test.age << endl;
  19. return 0;
  20. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
10