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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -