TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JONATHAN DE BOYNE POLLARD
from: ROGER SCUDDER
date: 1998-02-06 02:46:00
subject: C++ Saveding stuff

Hello Jonathan.
30 Jan 98 14:21, Jonathan de Boyne Pollard wrote to Cyber Con:
JdBP>         cin.getline(name, sizeof name) ;    // Note: no EOF checking
JdBP>         if (!strcmp(name, "Cyber Con")) {
JdBP>                 cout << "Hello " << name << endl ;
JdBP>                 ofstream file("file1.fil", ios::out|ios::trunc) ;
JdBP>                 file << name << endl ;
JdBP>         }
 Very interesting....  you don't even have to open the file
 explicitly.  Isn't it a bit sloppy not closing explicitly?
 -Roger
... Dammit, Jim, I'm a doctor, not a tagline writer.
--- Msged 4.20 beta 3
(1:273/404@fidonet)
---------------
* Origin: Hodge-Podge Support BBS, Upper Darby, Pennsylvania, USA

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.