POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
30 Sep 2024 21:33:51 EDT (-0400)
  Re: My first C++ program  
From: Orchid XP v8
Date: 19 Sep 2008 16:19:31
Message: <48d40953$1@news.povray.org>
Mueen Nawaz wrote:
> Orchid XP v8 wrote:
>> Spot the mistake:
> 
>     Function lacks a return statement.

Yup. A simple and obvious mistake. But unfortunately, not one the 
compiler warned me about. (I'm also curios to know exactly what the hell 
the function is returning... No doubt the reason there's no compiler 
warning is that this is actually a valid thing to do due to some bizare 
C language rule kept for compatibility or something random like that.)

-- 
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.