Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- struct MyStruct
- {
- public:
- int a;
- int b;
- }
- int main()
- {
- std::vector < MyStruct> tab;
- MyStruct myStruct;
- tab.push_back( myStruct );
- tab[0].a = 0
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment