Thread: Visual C++ vs C#

  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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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
    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, 12: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, 08:57 AM