Visual C++ vs C#

This is a discussion on Visual C++ vs C# within the C++ Programming forums, part of the General Programming Boards category; Just a quick question, can you do most things in C# that you can do in Visual C++? Thanks Andy...

  1. #1
    Andrewtc
    Guest

    Visual C++ vs C#

    Just a quick question, can you do most things in C# that you can do in Visual C++?

    Thanks

    Andy

  2. #2
    Andrewtc
    Guest
    I ment to say is C# as powerful as C++?

    Cheers

  3. #3
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Define powerful.

    If you're talking about speed and efficiency, C++ definitely beats C# hands down. If you're talking about productivity, C# is generally easier to program in and requires fewer lines of code to do the same thing in C++. But C# was created as an application-oriented programming language, while C++ is a general-purpose programming language. Both languages are powerful and how their own niches.

    But don't take my word for it, try both and see for yourself.

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    C++ isn't THAT much faster. I ran several tests and found out that C# is only about 10% to 15% slower. This would probably be the time needed to JIT the bytecode. In any account, this speed difference is very, very minimal in most applications requiring user input, like a word processor, etc.

  5. #5
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    C# always seems to take a longer time to load from my experience. And most benchmark tests only take into account console tests. I find that C# GUI applications are subtlely less responsive.

    Anyway C# currently isn't cross-platform. If I were a developer on Linux right now (or BSD, or Solaris) I wouldn't be able to find a C# compiler anywhere on the net.

    I'm not trying to diss C# in any way, I'm just saying that there's still a lot of work to do. I rather like the easy syntax of the language, and it has great potential.

    However I think the D language has more potential, but unfortunately no major software vendor is pushing for its development.

  6. #6
    Rez
    Rez is offline
    Registered User
    Join Date
    Nov 2002
    Posts
    82
    Nah C# sucks big-time. I'd take on C++ anytime Almost all great games I've played were programmed under MS VC++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 09:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21