fork download
  1. #include <vector>
  2.  
  3. class MyType
  4. {
  5. public:
  6. int a;
  7. int b;
  8. float c;
  9.  
  10. MyType(int A, int B, float C)
  11. {
  12. a = A;
  13. b = B;
  14. c = C;
  15. }
  16. };
  17.  
  18. int main()
  19. {
  20. std::vector<MyType> v;
  21. MyType m(1, 2, 3);
  22. v.push_back(m);
  23. }
Success #stdin #stdout 0s 2956KB
stdin
Standard input is empty
stdout

Standard output is empty