c++ - error: ‘split’ was not declared in this scope -
i compiler error c++. error: ‘split’ not declared in scope. need not able figure out why. here code:
#include <iostream> using namespace std; int main() { string input; string line; cout<< "enter input line" << endl; while (getline(cin, line)) { if (line == "quit") break; input = input + split(line, '#')[0]; } cout<< "the input entered was: "<<endl; cout<< input<< endl; }
as daniel mentioned, split not part of c++.
you can consider using boost::split
Comments
Post a Comment