Storing string arrays?
Posted on 2003-10-28
I have an a 1000 rows of data stored in a file something like this:
question 1 text q1 answer q1 difficulty
question 2 text q2 answer q2 difficulty
... (998 more)
After loading the data, where should I put this data? I would like to put it in a multidimensional array, but am new to C++ data structures, and not sure if this is the best option.
What would be the best way to store this data in C++ so I can rapidly pull up a random question?