cpp vector structure

Solutions on MaxInterview for cpp vector structure by the best coders in the world

showing results for - "cpp vector structure"
Ricardo
19 Jan 2019
1#include <vector>
2
3typedef struct test1 {
4  int a;
5  char b;
6} TOTO;
7
8std::vector<TOTO> _v;
9
10_v.push_back((TOTO){10, 'a'});
11_v[0].a = 101;