Answers for "extract words from string c++"

C++
1

extract words from string c++

// word variable to store word
    string word;
 
    // making a string stream
    stringstream iss(str);
 
    // Read and print each word.
    while (iss >> word)
        cout << word << endl;
Posted by: Guest on October-24-2021

Code answers related to "extract words from string c++"

Browse Popular Code Answers by Language