cpp:isteams
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cpp:isteams [2020/05/17 18:09] – gthanos | cpp:isteams [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| 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 << " -> " |
| } | } | ||
| } | } | ||
| </ | </ | ||
cpp/isteams.1589738940.txt.gz · Last modified: 2020/05/17 17:09 (external edit)
