What the difference between C/C++ and C# for Game Development?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gregor McAlen
    New Member
    • Nov 2008
    • 26

    What the difference between C/C++ and C# for Game Development?

    I still can't find the answer on the web C# seems to be much better then C++ but still every game that gets released written either on C or C++ not C# is there a reason for it?
  • Reallsc
    New Member
    • Nov 2008
    • 2

    #2
    因为C/C++比C#更高效,C#是运行 在.NET Framework上的,它相当 与Java的虚拟机 。
    Because C/C++ are more efficient than C#, C# is a language running on .NET Framework, a virtual machine which likes Java virtual machine.

    Comment

    • SvenV
      New Member
      • Oct 2008
      • 50

      #3
      Jup c# is managed, C/C++ aren't
      Check out this link: http://cowboyprogrammi ng.com/2008/02/26/managed-code-in-games/

      Comment

      • Gregor McAlen
        New Member
        • Nov 2008
        • 26

        #4
        Originally posted by SvenV
        Jup c# is managed, C/C++ aren't
        Check out this link: http://cowboyprogramming.com/2008/02...code-in-games/
        Thanks SvenV just finished reading the info on the link and looks like I went the wrong way...

        Was planing to write my Engine code in C# for mostly Physics database and calculation rules, but considering the information you linked to it will be much slower then using straight C or C++ and since C++ is currently used for most of the current engines where I expect my technology get used seems like C++ will be much easier to integrate.

        Will start hunting for good C++ books now then and forget all I studied about C# :(

        Thanks again.
        Gregor McAlen

        Comment

        • joedeene
          Contributor
          • Jul 2008
          • 579

          #5
          Originally posted by Gregor McAlen
          ...Will start hunting for good C++ books now then and forget all I studied about C#...
          There's no need to forget about what you've learned and studied in C#. Well, unless your only goal is to create games then yes probably, but C# is also great. If you're into web design C# is a possible language used when coding asp.net pages, which are pretty neat. You can always build countless amounts of windows apps.

          So, it's your decision. If I were you, I would drop the C# for a while and focus fully on the C/C++ language.

          joedeene

          Comment

          • Gregor McAlen
            New Member
            • Nov 2008
            • 26

            #6
            Originally posted by joedeene
            There's no need to forget about what you've learned and studied in C#. Well, unless your only goal is to create games then yes probably, but C# is also great. If you're into web design C# is a possible language used when coding asp.net pages, which are pretty neat. You can always build countless amounts of windows apps.

            So, it's your decision. If I were you, I would drop the C# for a while and focus fully on the C/C++ language.

            joedeene
            You are right, it is exactly what I will do.

            Comment

            • balabaster
              Recognized Expert Contributor
              • Mar 2007
              • 798

              #7
              On the plus side, C# and C/C++ are syntactically very similar... obviously there are the key differences, like importing headers which is somewhat like "using" namespaces. Pointers aren't used so much in C# (on the surface) as they are in C/C++...

              So much of what you learned in C# is useful and can be applied in C++. So your time hasn't been completely wasted.

              Comment

              • Gregor McAlen
                New Member
                • Nov 2008
                • 26

                #8
                Originally posted by balabaster
                On the plus side, C# and C/C++ are syntactically very similar... obviously there are the key differences, like importing headers which is somewhat like "using" namespaces. Pointers aren't used so much in C# (on the surface) as they are in C/C++...

                So much of what you learned in C# is useful and can be applied in C++. So your time hasn't been completely wasted.
                I found a lot of semilarities but also the difference creates lots of confusion, so trying to start over with a clear mind.

                Comment

                Working...