Hmm. I am converting a string into an int.
string sum(string line) {
string first;
string last;
string scores;
string output;
istringstream lineStream(line);
lineStream >> last;
lineStream >> first;
for (int i = 0; i < 10; i++) {
string getScores = "0 ";
lineStream >> getScores;
scores += " " + getScores;
}
stringstream sumStream (stringstream::in | stringstream::out);
sumStream >> scores;
int num = 0;
sumStream << num;
return (num);
The error says that you cant convert an in to a const char*
what does that error mean?