Ok, teaching myself C++ at the moment and have learned enought to get a text-based something or other going
Anyway, Im going to issue this game commands via the console. I have already gotten them to uppercase for recognition, but now I cant seem to call my functions.
I input my command:
Then I convert it:
Then I try to call my function(s), which are all defined.
for (int i = 0; i < command.size(); i++)//make the command uppercase
command[i] = toupper(command[i]);
The error: no match to call to '(std::string)'
IDE: Bloodshed Dev C++
I tried using the '*' for reference but still doesnt work, even though I still dont fully understand the use of the asterisk...
Anway, Is there a simple way to get what I want done?