Is there anything wrong with just using plain old C?

Started by
32 comments, last by tad pole 19 years, 12 months ago
OpenGL is a C API
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
quote:Original post by markr
I just can''t accept "it has multiple inheritance" as a valid excuse not to use C++.
It wasn''t presented that way. Multiple inheritance was simply pointed out as one of the more complex things that you get for free in C++ as opposed to having to implement it yourself (should you need it) in C.

In other words, multiple inheritance was actually presented as a reason to use C++.
Well C isn''t entirely dead for large scale applications. Quake 3 was written entirely in plain ANSI C so that tells you something. Otherwise just use whatever you like.
yea, but Doom 3''s going C++ I think.

anyway, C seems like a harder language to learn than C++, just because it is more strict and will take longer getting used to it. But it is possible to have an equivelent of classes in C, you just don''t get the synatical sugar.

for example, in c++

class myClass{   int x,y,z;   function();}myclass.function() 


in C

struct myClass{   int x,y,z; }function(myClass *);function(&myClass); 

This topic is closed to new replies.

Advertisement