This shows you the differences between two versions of the page.
| 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, | cin.getline(str, | ||
| - | cout << str << | + | cout << " -> " |
| } | } | ||
| } | } | ||
| Line 85: | Line 85: | ||
| while(!cin.eof()) { | while(!cin.eof()) { | ||
| getline(cin, | getline(cin, | ||
| - | cout << str << | + | cout << " -> " |
| } | } | ||
| } | } | ||
| </ | </ | ||