#include #include #include #include #include #include int main() { vector v; v.push_back( /*Forgetful{2}*/ ); v.push_back( /*Confabulator{}*/ ); v.push_back( /*Forgetful{3}*/ ); v.push_back( /*Confabulator{}*/ ); string line; getline(cin, line); vector whisper; istringstream iss{line}; copy( istream_iterator{ iss }, istream_iterator{}, back_inserter(whisper) ); for ( auto const& p : v ) { // anropa procces från p med whisper som argument här copy( begin(whisper), end(whisper), ostream_iterator{cout, " "} ); cout << endl; } copy( begin(whisper), end(whisper), ostream_iterator{cout, " "} ); cout << endl; return 0; }