POV-Ray : Newsgroups : povray.off-topic : Quick C++ question... : Re: Quick C++ question... Server Time
5 Sep 2024 03:19:56 EDT (-0400)
  Re: Quick C++ question...  
From: clipka
Date: 11 Nov 2009 22:21:07
Message: <4afb7f23$1@news.povray.org>
Darren New schrieb:
> clipka wrote:
>> Fun fact about structs in C++: They /are/ classes. Only major 
>> difference (IIRC) being that their members default to "public:".
> 
> That much I knew already. But I don't know if C structs are C++ structs 
> for sure. :-)

Well, C structs are fully compatible to C++ structs, aren't they? You 
can link a C++ program against any C library; and you can compile a C 
library with a C++ compiler, and still link it to a C program. So...?


Post a reply to this message

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