home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_07 / 1107102a < prev    next >
Text File  |  1993-04-29  |  231b  |  16 lines

  1. // copy2.cpp: Copy input lines
  2. #include <iostream.h>
  3. #include <stddef.h>
  4.  
  5. main()
  6. {
  7.     const size_t BUFSIZ = 128;
  8.     char s[BUFSIZ];
  9.  
  10.     while (cin.getline(s,BUFSIZ))
  11.           cout << s << '\n';
  12.  
  13.     return 0;
  14. }
  15.  
  16.