Question:
C# or C++ for beginners?
Gabbo93
2010-11-28 23:29:01 UTC
Hey,

I'm only 17 and still in high school but i have pretty much learnt a bit of every major programming language besides C and C++. I know a bit of C#.NET, heaps of VB.NET, HTML,CSS,PHP, Javascript and Java.

I hated Java, I am a major fan of web development, I have even started my own small business in it but I want to get into some hardcore programming but I don't know whether I should learn C#.NET or C++/C.

Please be as detailed as possible thank you :).
Five answers:
Shadow Wolf
2010-11-29 01:17:43 UTC
C++ is a super-set of C. So you can learn C, and then add C++. This is what the majority of Linux is written in and depending on which version of Windows, the majority of Windows as well. You can't go wrong learning C/C++ because it is nearly universal no matter what operating system you might be using.



C# is limited to Windows. Microsoft didn't like C++ and they developed what is possibly best described as C++ without most if not all the stuff that might hurt the operating system. You can learn C# as it is related to C++, but you'll be limited to Windows. C++ has some problems, but so does several other programming languages. I imagine there are problems with C# if you dig a bit.



HTML is not a programming language. It is a markup language similar to what Word or any other word processor does for you behind the scenes. I wish everyone would quit pretending it is more than it is. I used to hand code HTML before programs could export to HTML and HTML editors were glorified text editors.



Java is very similar to C++ except some things are backwards from C++. If you really know Java, then you won't have a lot of problems with C++ except for the things that are different. Java looks a lot like C++ most of the time.



The real truth of the matter is if you really understand programming, you can pickup another programming language in a matter of weeks. If you don't have much trouble reading a variety of programming languages, then it really won't matter a lot which programming language you learn. Should you need another one, you can learn it in a fairly short time.



Shadow Wolf
Kurt
2010-11-29 08:07:10 UTC
I would think C++ would be the better choice. C# is built from C++. Most of the more modern languages are built around the syntax and form of C. C++ is an implementation and extension of C that allows the use of Object Oriented Design and Object Oriented Programming. C++ is used in every operating system and many compilers are capable of cross-platform development. Java is very similar to C++, sharing many elements of syntax and structure. C++ will have the larger market in the future as well as in the present. Like Java, it is useful on all platforms, including desktop and laptop, mobile devices like phones and mp3 players, and even appliances and other smart devices. Most embedded programming at this time is either C or C++. C is still the most widely used, but if you know C++, then you know how to write in C. The C language library routines are still useful in C++.
Jim
2010-11-29 19:48:12 UTC
with .net you learn bad programming practices.

don't get me wrong, front-ends to databases are still written in VB.



I am not sure which is harder, c# or c++ windows programming. probably c++ windows programming.



there are GUI libraries to simplify the task of course, like fltk.

everybody wants a GUI app.

probably much easier to write in c#.



there are some web apps that should only be developed in c++ or perl cgi-bin, but they are rare, like maybe e-commerce, or googlebot, etc.
Ben Se7eN
2010-11-29 07:53:21 UTC
Well c++ is similar to c# . So you could easily adjust both. Besides I think C++ is better for hardware interaction. Because many of the OS are written in C or C++
Brad
2010-11-29 07:33:04 UTC
c#


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