How well does C# compare with C++?

Hello,

I have a few questions about C# I was hoping someone might be able to answer for me. I am new to the world of programming, and I don't know if I should begin learning C# or C++. From a employment standpoint, C# seems to be a very good choice of language to learn. Where I work now, data driven web sites are becoming more in demand, as is work with SQL/databases. After I learned about C#, it seemed like the ideal language to learn since it seems to primarily deal with the development of web sites and window applications.

On the other hand, from a hobby standpoint, I've always been more interested in developing backwards compatible Windows/DOS applications, and I don't personally care too much about integrating programs with Internet databases. Also I don't know anything about the .NET framework, and have heard C++ is a much faster programming language that you would want to use for developing fast applications(Such as PC games). So I have a few questions regarding this I would like to get answered before I decide on which language I should learn:

Not taking the web development aspect of C# into account, how well does C# and C++ compare on the level of functionality I know C++ is possible of creating .DLLs and other OS level applications, can C# do this too How about speed I have heard that C++ programs run about 20% faster then C# programs, is that true Is C# about as fast as J# Can C# create the same type of programs C++ can create

Can C# programs run on older Windows OSes such as Windows 98 and 95 If so, would there be any requirements for those older OSes to use C# programs What if my C# program used DirectX or OpenGL

Does the .NET framework need to be installed on every PC that would use a local C# application Or do C# programs contain everything necessary within the .exe to run independently

Please let me know anything else about C++/C# that you might think is important. Thank you for taking the time to read my post and I'm sorry if these questions have been asked several times before - I have been unable to find answers to them.


Answer this question

How well does C# compare with C++?

  • SpawnXXL

  • dovoto

    I recently switched to C# from C++ after years of 'plussing'.

    Although I can't answer most of your questions, C# has been much easier to work with, fully featured, and is accepted as a mainstream programing language. I do not regret using C# at all, and will not go back to C++ except for maintaining older programs.

    C# handles the 'naughty bits', as Monty Python's cast might say, and covers up most of the nagging problems areas found using C++, like managing pointers, memory, etc..

    Good luck

    G.


  • How well does C# compare with C++?