I have a vector of structs:
std::vector <teststruct> vec;
I am reading in the struct from a file -
teststruct *var11 = (teststruct*)malloc(sizeof(teststruct));
fread(var11, sizeof(char), sizeof(teststruct), file1);
I am trying to store this struct into an array using push_back but I receive an error message stating that push_back does not exist.