|
|
1.1 root 1: // exios117.cpp
2: // Using get with a buffer and length
3: #include <iostream.h>
4:
5: void main()
6: {
7: char line[25];
8: cout << " Type a line terminated by carriage return\n>";
9: cin.get( line, 25 );
10: cout << ' ' << line;
11: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.