POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
4 Nov 2024 13:44:29 EST (-0500)
  Re: My first C++ program  
From: Orchid XP v8
Date: 20 Sep 2008 06:02:18
Message: <48d4ca2a$1@news.povray.org>
Warp wrote:
> Warp <war### [at] tagpovrayorg> wrote:
>>   Another C function can be used to both parse an integer from a string
>> and know if there was one: strtod(). However, its usage is even more
>> complicated than atoi().
> 
>   Yeah, it's strtol(), not strtod(). The latter is to read a floating
> point number.
> 
>   (This shows how clear those C function names are... ;) )

<insert "I told you so" remarks here> ;-)

At least C++ manages to be a little more intuitive here.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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