Guest User

Untitled

a guest
Jul 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. struct MyStruct
  5. {
  6.     public:
  7.     int a;
  8.     int b;
  9. }
  10.  
  11. int main()
  12. {
  13.     std::vector < MyStruct> tab;
  14.     MyStruct myStruct;
  15.  
  16.     tab.push_back( myStruct );
  17.    
  18.     tab[0].a = 0
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment