comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » C/C++ conversion to IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: C/C++ conversion to IDL [message #44305 is a reply to message #44215] Tue, 07 June 2005 09:05 Go to previous messageGo to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Michael Wallace wrote:
>> Would there be any prefererence for C or C++, as i am not really that
>> familar with either and dont really have the time to learn one and
>> realise later that the other one is more appropriate?
>
> C++ is almost, but not quite, a superset of C. Because of this, I'd
> advise learning C first and then go on to learn C++ should you need to.
> The primary difference between the languages is that C++ supports
> object-oriented programming while C is procedural. If you won't be
> using objects, don't worry about learning C++ now. There are other
> differences between the languages, but none of those make a compelling
> case to learn C++ in this situation.

Most well-written C programs (for a particular definition of
"well-written") can be compiled as C++ programs without a change in
meaning. So in that sense C++ is "almost" a superset of C. However,
there's a great many features of C that are supported by C++, but
shouldn't be used when writing C++ code; C++ has much better ways of
doing the same thing. Learning how those features works is necessary
for a expert C++ programmer, but a bad idea for the novice; the novice
might make the mistake of actually using them.
Therefore, I'd recommend learning C++ first; learn C only if and when
you need it.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CALL_EXTERNAL in idl virtual machine
Next Topic: delete variable name from memory

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:25:28 PDT 2025

Total time taken to generate the page: 0.48094 seconds