What's the difference betwem C++ and C# ("C beef" or "C gitter")
and what argument is there for learning the language sometime in the near future.
Printable View
What's the difference betwem C++ and C# ("C beef" or "C gitter")
and what argument is there for learning the language sometime in the near future.
NOTHING is different between them in the .NET framework. I'm talking about Managed C++ vs. C#.
They both will run on MSIL "microsoft interpreted Lang." sort of a bytecode like java has. IE. they will both have the exact same performance and MS wants you to use C#, since you gain nothing by programming in VC++.NET.
Regular C++ will be faster than C#, or anything .NET.
my advice is to pick up C# at your leisure, preferrably get a company to pay for your training. Just stick to C++ and you'll be fine for awhile yet.
>they will both have the exact same performance
Which is not 100% true. While the same bytecode will run in the same amount of time, C++.NET, C#.NET and VB.NET for example will not generate the same bytecode from almost equal statements. VB for example will provide overflow checking on additions, while C++ will simply add without checking. This will result in slightly better performance for C++.NET.
The differences in the performance of any of those languages will be so insignificant it really is a non-issue. In fact MS says that C# is the optomized version for .NET and that C++.NET exists only for programmers who love C++ and it adds unneeded complexity to the .NET framework. Therefore, most likely C# will be the lang. that will outperform both C++.NET and VB.NET but still in an insignificant way.
If you need to write Networked, Server, Text, anything that doesn't need optomization like a GAME you should probably use .NET - C# preferably.
Otherwise stick to C++ (regular).
It doesn't make sense to me why MS would try and kill off true C++ and old style VB by forcing C# to everyone. Just want to be like Sun with J2EE I guess. :p
What is this .NET thing you're all talking about?
from what i hear, C# ( i pronounce that as either "see sharp" or "c pound") is just microsofts variation on C++ or java, one of these. i dunno, im all confusled!
If you are all confused, then don't provide answers.
If you want to know what C# is, go out and read tutorials, the FAQ, or a book. The compiler is free for download at Microsoft.