OpenGL is a C API
Is there anything wrong with just using plain old C?
quote:Original post by markrIt 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.
I just can''t accept "it has multiple inheritance" as a valid excuse not to use 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++
in C
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
Popular Topics
Advertisement