c++: what is a good idea for a list of strings?
- by John
I simply want to build an RPG and make it as neat as possible, I wish to define a pile of strings which I may want to edit later, so I tried something like this:
enum {MSG_INIT = "Welcome to ...", MSG_FOO = "bar"};
But I just get errors, such as that MSG_INIT is not an integer! Why must it not be a string, are that what enums are only for?
What do you think is the best way to define a pile of strings? In a struct called msg or something? I'm kinda new to all this so I'd really appreciate small examples.