User Tools

Site Tools


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
cpp:isteams [2020/05/17 18:09]
gthanos
cpp:isteams [2020/05/17 18:11]
gthanos [Διαβάζοντας λέξη-λέξη ή γραμμή-γραμμή]
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)