fork download
  1. class myClass
  2. {
  3. public:
  4. myClass(int time) {};
  5. };
  6.  
  7. class TopClass
  8. {
  9. public:
  10. struct tStruct {
  11. tStruct(int time, int k = 0): myint(k), myclass(time) {}
  12. int myint;
  13. myClass myclass;
  14. };
  15.  
  16. TopClass(int t): sStruct1(t), sStruct2(t) {}
  17.  
  18. tStruct sStruct1;
  19. tStruct sStruct2;
  20.  
  21. };
  22.  
  23. int main() {
  24. TopClass a(5);
  25. }
Success #stdin #stdout 0.01s 2720KB
stdin
Standard input is empty
stdout

Standard output is empty