I have a list of books that I need to access from 3 or 4 different functions of my program. It's 250 books with unique names. Would it be wise to use simple array to store the list?
Or is there any easy way for a newbie to manually create the list and then access it? I'm new to this, making a transition from JavaScript where I would use JSON.
So basically is this right way to do it:
string books[250] = {"MyBook One", "My second book", "Third book", "Book nr 250"};
and the call it like this:
void displayRandomBook(booknr)
{
... some code ....
sdlTTFdisplay(books[booknr]);
}