cpp:isteams

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cpp:isteams [2020/05/17 18:00]
gthanos
cpp:isteams [2020/05/17 18:09]
gthanos
Line 48: Line 48:
   while(!cin.eof()) {   while(!cin.eof()) {
     cin >> str;     cin >> str;
-    cout << str << " ";+    cout << " -> " << str << endl;
   }   }
 } }
Line 66: Line 66:
     // Read a line of maximum size 255 bytes.     // Read a line of maximum size 255 bytes.
     cin.getline(str, 256);     cin.getline(str, 256);
-    cout << str <<  endl;+    cout << " -> " << str <<  endl;
   }   }
 } }
Line 85: Line 85:
   while(!cin.eof()) {   while(!cin.eof()) {
     getline(cin, str);     getline(cin, str);
-    cout << str <<  endl;+    cout << << " -> " str <<  endl;
   }   }
 } }
 </code> </code>
  
cpp/isteams.txt · Last modified: 2020/05/17 17:11 (external edit)