delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/21/07:39:12

From: "Daniel Urquhart" <urquhartd AT jlcrowe DOT org>
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: <JY6l3.41$K_5.341628@news.bctel.net>
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 <jventer AT writeme DOT com> 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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019