I am trying to make a function that would "parseUserInput()
" and my plan was to pass the user's input as an argument through the parseUserInput()
's "input" parameter. However, when I put anything into the "input" parameter, I get an error saying that there is "no matching function for call to 'parseUserInput'
"
What is causing this error?
std::string branchCommand;
std::string userInputCmd;
std::string parsedInput;
std::string parseUserInput();
std::string inputCommand() {
std::cin >> userInputCmd;
parseUserInput(userInputCmd);
return branchCommand;
}
std::string parseUserInput(std::string Input) {
return parsedInput;
}