Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

split string in c++

void simple_tokenizer(string s)
{
    stringstream ss(s);
    string word;
    while (ss >> word) {
        cout << word << endl;
    }
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #split #string
ADD COMMENT
Topic
Name
9+4 =