From: "Daniel Urquhart" Newsgroups: comp.os.msdos.djgpp References: <7mqe9a$2mlh$1 AT nnrp01 DOT ops DOT uunet DOT co DOT za> <4psk3.9156$yD2 DOT 21461 AT newsfeeds DOT bigpond DOT com> Subject: Re: What's the command? Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Tue, 20 Jul 1999 15:12:20 -0700 NNTP-Posting-Host: 209.52.196.56 X-Complaints-To: news AT bctel DOT net X-Trace: news.bctel.net 932510633 209.52.196.56 (Tue, 20 Jul 1999 15:43:53 PDT) NNTP-Posting-Date: Tue, 20 Jul 1999 15:43:53 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Johan Venter wrote in message news:4psk3.9156$yD2 DOT 21461 AT newsfeeds DOT bigpond DOT com... > Burger Rule wrote in message <7mqe9a$2mlh$1 AT nnrp01 DOT ops DOT uunet DOT co DOT za>... > >Can anyone please tell me what the equivalent of Pascal's "readln" is in > >C++? use the extractor for the object "cin" ie. #include "iostream.h" ..... cin>>TheVariable; > > Look up scanf(). That is standard C, wich is best not mixed with C++, its also more difficult to use, as the cin format can be used to read any stream, and does not require a format string.