POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
30 Sep 2024 19:29:57 EDT (-0400)
  Re: My first C++ program  
From: Invisible
Date: 19 Sep 2008 11:09:56
Message: <48d3c0c4@news.povray.org>
Warp wrote:

>   No need for atoi(). You can use stringstreams, as I wrote in the other
> post.

I did think using a C function seemed a little bogus.

(For one thing, AFAIK, there is *no way* to know whether atoi() 
succeeded or failed; if it "fails", you get a zero. So was the string 
actually a zero, or did the conversion fail??)


Post a reply to this message

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