Thread: C# or C++

  1. #1
    Newbie
    Join Date
    Dec 2005
    Posts
    22

    C# or C++

    What is the difference between C#, C++ and C++.NET

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659

  3. #3
    Newbie
    Join Date
    Dec 2005
    Posts
    22
    opps, I thought I did but I forgot were I asked it, sorry

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Er...since neither of them are locked, I'll reply here.

    C++ is C++. Mostly a superset of C with classes and all that. I'm sure other people are better to ask if you want a good definition of C++.

    C# is a .Net language that uses a mixed version of C++ and VB syntax. If you make CLS-compliant assemblies, you can run .Net applications on any OS that has a .Net runtime. The latest version of the CLR supports generics (kind of C++ templates) and other handy features.

    C++.Net is a terrible bastardization of C++ for the .Net world. It is awkward and difficult to work with. I suggest playing with C++.Net only if you need to make a managed wrapper for unmanaged code.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  5. #5
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    I would suggest giving C# a look. Sure, C++ is awesome to learn with, hobby with, and build applications where speed and efficiency are key. However, often in the IT space, you'll use a language or platform that is more about time to market and productivity. So you'll end up on the .NET Framework or J2EE. For this reason, I highly suggest looking into C#. You can still get at C++ type routines if you need to, but you get the ease and flexibility of .NET.

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I prefer C++ for when I want to target all windows (95/98 and up). Sence C++ is native it is nice sence no one has to download that 20+ mb .net framework. C++ is also very nice, sence it is a plain and out there language it can do alot of flexable things that C# can't, and yes pointers are your friend.

    C# is very easy to learn, mainly because of the intellisence, and smooth design. The intellisence takes away hours of senceless searching of functions and other such things. C# also is just easy to use, with the form creation and everything.

    C++ .net I heard is awfull. I never tried it nor do I intend to.


    All in all I would recomend learning C#, it isn't just valuable to know but it is fun. C++ is also very nice to know and can also be fun.

Popular pages Recent additions subscribe to a feed