Thread: difference betwem C++ and C# ?

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    160

    difference betwem C++ and C# ?

    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.
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  2. #2
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

  3. #3
    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.
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  4. #4
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    >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.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  5. #5
    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).
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  6. #6
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    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.

  7. #7
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    What is this .NET thing you're all talking about?

  8. #8
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    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!
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  9. #9
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    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.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed