Does anyone know if this is possible?
//in header
struct Output
{
double *var1;
double *var2;
double *var3;
}
//in main
std::vector<Output> output(512);
and then be able to populate each member of the Output struct in the "output" vector?
Something like:
for (i = 0; i < 512; i++)
{
output->var1[i].push_back(value1);
output->var2[i].push_back(value2);
output->var3[i].push_back(value3);
}
If so, what is the actual syntax (since this does not work).
Thanks!
-H