C++ Can't subtract two strings
问题 I want to subtract two strings in this code, but it won't let me do it and gives an operator - error. This code basically tries to separate a full input name into two outputs: first and last names. Please Help! Thank you! #include <iostream> #include <cstdlib> #include <string> using namespace std; string employeeName, firstName, lastName; int pos1, difference; int main() { cout << "Enter your full name: " << endl; getline(cin, employeeName); pos1 = employeeName.find(" "); difference = pos1 -