I am having problems with a code that I would like to go something liek this
string array;
int z = rand()%2;
switch(z)
{
case 0:
array = {"entry 1","entry 2",...,"entry n"};
break;
case 1:
array = {"entry A","entry B",...,"entry (letter)"};
break;
}
//then do stuff with array
I can't seem to get the nomenclature right. I've tried array[] and array[n] and permutations of those between the declaration and initialization. Please help!
:o
edit: in case it matters, the number of entries in each case is the same (20)