The type of a should be std::string and not int.
So just change the declaration to:
std::string a;
1
solved how to use strings in if statments (c++)?
The type of a should be std::string and not int.
So just change the declaration to:
std::string a;
1
solved how to use strings in if statments (c++)?