In order to be as organized as possible, according to my prof., vector is required to become organized. I am having trouble and do not know what my next move should be in my current codes. Any tips on what I should do is greatly appreciated.
struct menuItem
{
void(*func)(); //what is this for, anyway? can this go away? is it just a string manipulation function that is part of std::string?
string descript;
};
class Menu
{
private:
vector<menuItem> mi;
and down in the constructor for the class you may want to pre-allocate the array to its best-guess max size OR you can let it fill in on the fly with the push-back method. One or the other is needed.
there will be some cleanup of your string class and arrays of course.
strcpy for example just becomes =
I would do it one at a time, first string, then array to vec.