Thx for reply but I'm a bit confused on the Mapping I might have to look up a few websites I tried a bunch of different things heres the last thing I tried:
map<QString,QString>functions;
functions["food"] = entrynum->food();
functions[0]
map<QString,QString>functions;
functions["food"] = entrynum->food();
functions[0]
To copy to clipboard, switch view to plain text mode
Heres what im trying to do.
say I have a QString called functions. I want it so I can do output << functions. Then in place of functions it would put "entrynum->food()". so basically a container or something to hold the names of my functions I will be calling so that way I can do something like functions[i] instead of entrynum->food, entrynum-> calories ect.
Bookmarks