POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
30 Sep 2024 13:22:07 EDT (-0400)
  Re: My first C++ program  
From: Invisible
Date: 19 Sep 2008 10:05:39
Message: <48d3b1b3$1@news.povray.org>
Invisible wrote:

> At present, I haven't figured out how to convert a string to an integer 
> yet, so this "calculator" is pretty much useless. I'm sure it'll be 
> explained later in the tutorial.

The tutorial recommends the C function atoi() - which, being a C 
function, is about as user-friendly as Windows 2. Much hair-pulling 
involving pointers ensues.

(It turns out that you can assign a string to a char*, but not the 
reverse. Go figure. Anyway, the solution is simple enough...)


Post a reply to this message

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