no matching function for call to `toupper(std::string&)'
candidates are: int toupper(int)
Expand|Select|Wrap|Line Numbers
- #include <cstdlib>
- #include <iostream>
- #include <string>
- using namespace std;
- int main(int argc, char *argv[])
- {
- while( true )
- {
- cout << "fire> ";
- string cmd;
- getline(cin, cmd);
- string upp;
- upp = toupper(cmd);
- cout << upp << endl << endl;
- }
- return EXIT_SUCCESS;
- }