Advertisement

WHY C++ OVER ANSI C?

Started by January 15, 2003 08:05 PM
11 comments, last by deadalive 21 years, 10 months ago
Oeh, always a hot topic!

Just wanted to give my opinion to the subject:

Don''t convert your C code to C++ when your not fully (or atleast almost) comfortable with ++. I think you really should have good knowledge of C++ before writing anything. I started writing my graphics library with a minor knowledge of C++ and everytime I learnt something new I rewrote big parts of the library.:-(

Also, there are a lot of things that can influence the performance of your code greatly when your not completely thinking in C++ yet. Passing by reference/value operator overloading, constness, etc.
"To infinity, and beyond!"
I just changed my latest "programming doodle" from classless C++ (basically just C) to C++. I''ve been programming for over 15 years, and first learned C/C++ second term of UNI around 95''. Total tally thus far:

In:
1 .cpp file, 1300 lines long
Out:
6 .cpp, 5 .h
2 days work
around 200+ error messages (mostly "wrong thing in wrong class")

---email--- Tok ----surf----
~The Feature Creep of the Family~
--------------------------~The Feature Creep of the Family~
Advertisement
You could just write in C++, but write it like a C program, using the one or two C++ features you are comfortable with where they fit in.

This topic is closed to new replies.

Advertisement