ok,
I have a series of numbers, they happen to be index numbers for files, but anyhow, I need to store them in an organized manner, then use the "number" i have stored in conjunction with a filepath string so that i can open these files and search through them, i know how to get them opened up and searched, but how should i store them? here's what i've been tinkering with:
integer arrays won't work because there are 9's in some of the numbers and i get base 8 errors. i was goofing around and switched to char arrays and got twice the amount of errors i have now...what should i do? I need to organize these things so i can easily pull them out.Code:string amt[]( "0012", "0100", "0740", "3390", "4619", "4620" );
note: in total....there's around 5000 sets up numbers in seperate arrays
I'm also doing this (i know it's not the right way to do it, but it's a start and i'm hoping you can help:
what can i do here?Code:switch (company) { case 0: theArray="amt"; break; case 1: theArray="barber"; break; ... //Then something along these lines (i know this won't work) ifstream file; for(int x = 0;x < theArray.GetSize();x++) { file.open(theArray[x]); .................... file.clear(); file.close(); }