POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
1 Oct 2024 05:17:38 EDT (-0400)
  Re: My first C++ program  
From: Mueen Nawaz
Date: 20 Sep 2008 11:34:49
Message: <48d51819$1@news.povray.org>
Warp wrote:
>>         If you DO want to read a whole line, look up the getline function. That 
>> will also take in an "empty" line.
> 
>   The problem with getline() is precisely that it reads an entire line.
> If there are several whitespace-separated things in that line, it will
> still read the entire line.

	Which is not a problem if that's what you want to do.

	I use getline to simulate a pause, where the user has to press Enter to 
continue (there's another function for just reading a character - I 
forget what it was).

-- 
Copywight 1991 Elmer Fudd.  All wights wesewved


                     /\  /\               /\  /
                    /  \/  \ u e e n     /  \/  a w a z
                        >>>>>>mue### [at] nawazorg<<<<<<
                                    anl


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.