Question:
Should I learn C or C++?
Tom
2010-11-13 05:52:45 UTC
At the moment I do PHP but I want to get into desktop programming. Which language should I use?
Nine answers:
Michael
2010-11-13 06:50:20 UTC
These sites have a complete comparison between the two languages:



http://www.cplusplus.com/forum/general/134/



http://unthought.net/c++/c_vs_c++.html
question asker
2010-11-13 14:17:16 UTC
I would learn C++ as it has much easier ways to accomplish things. Also if you want to get into desktop applications you will want to learn a widget toolkit. I recommend Qt or wxWidgets.



I've just started learning C++ (I already know some Java and a little PHP) and I have been using the Sam's teach yourself C++ in 24 hours. It's not perfect as it has some annoying redundancies in the sample code. However it is good for learning the core features of the language. This book by Stroustrup also looks good although I haven't read it yet:

http://www2.research.att.com/~bs/programming.html
Me M
2010-11-13 16:48:50 UTC
Of those two, I would learn C++. However, if you want to get into desktop programming for Windows applications, I would learn C#.... GUIs are MUCH easier with it (and GUIs are expected with modern apps) and the language is easier and the .NET framework has many features that make things easier.
green meklar
2010-11-13 19:28:17 UTC
Learn C++. C is largely deprecated and has been replaced by C++ for most tasks. It is only used anymore in cases when very high speed and reliability are required, because it lacks some features that can produce inefficient machine code in C++.
?
2010-11-13 14:22:50 UTC
It depends, do you want to develop nice, complex software, or just learn the basics. If you want to create a real Windows application I would learn both but mostly c. Also if you have Windows learn Win32!
2010-11-13 14:03:30 UTC
I recommend you to learn C, cuz it's the basic of most desktop develop.

And if you learn C well, C++ is much easier to study.Be patient, man!
paul
2010-11-13 15:16:00 UTC
Neither. Learn C# instead - there's more jobs going in C# than in either C or C++.
DX
2010-11-13 17:56:36 UTC
C++, because it's more flexible. Personally, I dislike both and would agree with the people here who said C#.
Raj ......
2010-11-13 13:57:13 UTC
yes u should learn c++ its more advanced but somewhat hard to learn.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...