I am trying to read a file and then store the results in a data structure. One of the members of the structure is a vector. I use the following to push back the data 'p' into the vector 'v1'.
Assume structure called Rulestrc
Rulestrc* tp = NULL;
other coding
tp -> v1.push_back(p) ;
The code compiles but does not run. I know it has something to do with the vector but I am not sure what ie can you have a vector that is a member of a structure. Can you please advise
Thanks
Assume structure called Rulestrc
Rulestrc* tp = NULL;
other coding
tp -> v1.push_back(p) ;
The code compiles but does not run. I know it has something to do with the vector but I am not sure what ie can you have a vector that is a member of a structure. Can you please advise
Thanks
Comment