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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -