Click to See Complete Forum and Search --> : advantages and disadvtanges of C++ vs- C#


indiocolifa
October 26th, 2004, 03:03 AM
What are the disadvantages and advantages of using C++ over C#?

I like .NET so much and I'm beginning in C#, but since I already know C++ maybe this is a better option.

Note that I'm talking about full projects, not language mixing (like doing a DLL in C++ and using it in C#).

thankz.!

atkin
October 26th, 2004, 06:38 AM
C# has a garbage collector and c++ doesnt. This makes c++ faster than c#.
If you are programming an application that is real time based like a game then you need to use c++, cause you dont want the gc kicking in and freezing up the game. This will slow down your frame rate, make your models become unstable if they require a specific delta time.
With C# you get all the nice goodies that make windows programming a breeze and the fact that everthing revolves around xml. You dont have to use xml dom in c++, which is a shlep.
Best is always to opt for c# unless its a performance issue.
Hopes this answers your question.