delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/17/07:29:33

Date: Mon, 17 Jan 2000 13:32:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Matt Firewalker <arenaproject AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with cin.get
In-Reply-To: <AFwg4.1236$Pb4.9680@newsfeed.slurp.net>
Message-ID: <Pine.SUN.3.91.1000117133144.22412R-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 16 Jan 2000, Matt Firewalker wrote:

> Every time I use cin.get, my program seems to skip right past it.  It
> doesn't matter what I am trying to do with it; I pass in an array of
> characters and a number of characters to read, that's it.  Is there
> something wrong nyah?

You forget about buffering: any prompt which doesn't end with a newline 
won't be written unless you fflush the stream.

- Raw text -


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