#include<sstream>
  #include<iostream>
  using namespace std;
  int main(){
     string line = "test one two three. \n another one \n";
     string arr[8];
     cout<<line;
     int i = 0;
     stringstream ssin(line);
     while (ssin.good() && i < 8){
         ssin >> arr[i];
         ++i;
     }
     for(i = 0; i < 8; i++){
        cout << arr[i];
     } 
  return 0; 
  }
//Now i want to print that elements that just come before the newline ("\n") in the string.
 
     
     
    