1

I created a code that executes a specific operation based on the input of the user, some operations are named with spaces between in it, but when i input the operation names, its not executing the operation where as when i remove the space the operation is getting executed can someone help me with this.

Here is a code snippet:

string user_command;
    cout << "Enter the operation: ";
    cin >> user_command;

    if (user_command == "Value Check"){
        valueCheck();
Sri Govind
  • 65
  • 5

0 Answers0