Joseph A. Marrero wrote: > Rick, > > I remember when I first started to learn C++, I had a lot > of trouble. I eventually gave up and learned C instead. C > is a nice language in that things are usually much easier > to understand than in C++. With this in mind, it may suite > you in the long run to not spend too much time learning C > (if you already know C than ignore this) and immediately > start learning C++. Myabe I am wrong, but when you start > learning C++ you will see why C++ is better in some (if not > all?) respects. Another important note about C++ to > remember is that although C++ has a lot of features you do > not have to use them all. > > However, Rick, you should also consider what kind of > programming you want to do. If your interested in kernel > level programming or just like be a unix traditionalist > than C may be best. Even your platform is important when > considering this. For example, although, many people > program in C++ on Linux there are few purely C++ libraries. > To me, it would seem that C++ is getting the short end of > the stick on Linux... maybe I'm wrong. > > If your interested in one distinct difference with C and > C++ that you would like to explore then take a look at > "generics" in C and generics in C++. What you will find > will illustrate one reason why people like C++.
I was a hardcore C fan for the longest time. I knew C++ but couldn't see any reason to use it because I already implemented class-style code in my own stuff (i.e. I learned C++ and "backported" the ideas I learned to the way I wrote C code). And, you are quite right, I've noticed that Linux programmers seem to have this complete refusal to use C++ for anything and use only C. Even if they didn't use classes and templates, the extra features such as function overloading and stronger type checking would make their lives significantly less painful. (And the C++ compiler emits more error messages, which can find bugs at compile-time instead of run-time - I don't know about you, but I'd rather the compiler caught the error on my local computer than have the app. crash in the wild and never hear about it). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.0 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
