What I'm trying to do is to initialize a bunch of variables of type Question with incremental file names such as q1, q2, q3, q4, etc. I want the number of variables to make be a previously defined int NumQuestions. Here's what I have so far:
for(int i = 1; i<=NumQuestions; i++)
{
Question q char i;
}
Of course this doesn't work, but somehow I need the value of i to be part of the variable name. Any thoughts?
~Rapier21
for(int i = 1; i<=NumQuestions; i++)
{
Question q char i;
}
Of course this doesn't work, but somehow I need the value of i to be part of the variable name. Any thoughts?
~Rapier21