Difference between C, C+, C++
Difference between C, C+, C++
(OP)
I am new to this, my background is electromechanical and gas turbines. I just started learning PLC's and getting pretty comfortable with it. My compatriots recommended I take C programming but I don't know the differences. They also said since I have a full-time job I need to buy one of those CD programs for self study. Can someone give me some guidance on what direction to go? THANKS





RE: Difference between C, C+, C++
C++ is an Object Oriented variant of C. If you are going the C++ route, don't learn C first: you'll get into a lot of bad habits. However, it is a big language with lots of new concepts. If you are intending to write GUIs, this is probably the way to go. It is not available on as many platforms as C. There is a standard library of algorithms STL which does all the standard stuff like linked lists, vectors etc. There are lots of free compilers about.
C# is a Microsoft Language. It is big, slow, still being developed and a very bad excuse for a faster processor. You can download the Express version from the microsoft site or get the CDs for £3. Don't try it on a system less than 1GHz 256Mb. It is XP based but will work on 2000. It is not a good first language.
RE: Difference between C, C+, C++
If you are going to stick to engineering type programs and programming controllers, stay with C. Lots of C experts out there if you have any questions.
If you are going into developing GUIs or stuff for Mobile Phones, try C++. You can develop GUIs in C too but it is easier in C++ in that each control is an object. Some people use C++ like a lazy variant of C i.e. they use // for comments and make declarations all over the place: not just at the top of the routine. All C++ compilers will compile C. Lots of C++ experts in cyberspace if you get stuck.
If you wish to be tied to Microsoft and .net, torture yourself and have to change compilers every year or so, you could try C#. Most people are still learning C#: it is only about 4 years old. I'd wait another two years before trying C# - it is like Visual Basic when it started. A new compiler is released every year with new features and it is just too much for carbon based lifeforms.