Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Is it true?!?!?!


  • Please log in to reply

#1
akashlee

akashlee

    Member

  • Member
  • PipPipPip
  • 126 posts
i am learning c++ because i want to game, but i just read an article saying C is better than C++ when it comes to gaming.... i was like :tazz: :) :) !!!!!!!!!!!!!!!!!!!!!!!!!
so is c++ a good gaming lang?
..
:woot:
  • 0

Advertisements


#2
Thef0rce

Thef0rce

    Member

  • Member
  • PipPipPip
  • 380 posts
uh. c and c++ aren't all that different. the point is to learn an object orientated language. the concepts are the same in almost every high level programming language. just pick one, learn it as well as you can and you should be able to get it to do what you want. of course some languages are more efficient than others, but you must have a starting point.
  • 0

#3
Hai Mac

Hai Mac

    Member

  • Member
  • PipPipPip
  • 260 posts
Who told you that yarn? C is not even Object Oriented and without that philosophy you won't get far in game writing.
  • 0

#4
Irephin

Irephin

    New Member

  • Member
  • Pip
  • 5 posts
As Thef0rce noted, C and C++ aren't terribly far apart. In fact, all C code is valid C++ code. C++ is a superset (extension) of C to give it more object oriented support.

It's worth noting, on the topic of object oriented programming, that it is the program you write, rather than the language you use, that can be object oriented. Certainly, C++ makes that easier than C does, but it is possible to write an "object oriented C program".

On the topic of gaming- which is your point, after all- either one will work just fine. If you have already begun learning C++, I would stick with that. Personally, if I had the choice, that is what I would use any way (and I have used both languages, though not for games).

I would be interested in seeing the article that you just read, if it is on the web. I am guessing that it sites less overhead in the C language as allowing it to be faster code. Technically, this is the case, but these days, if you write decent C++, it won't make a whole lot of difference (computers aren't getting any slower :tazz: ).

Also of note, Windows APIs are all written to conform with C. This means that if you use C++ there may be some C practices you will have to adopt to interface with the WinAPI. This is nothing to worry about though, and as I have said, all C is compatible with C++, so you won't have any compatibility issues with writing games for windows. If, of course, you are going to write console games (which is proly the best place to start), this won't be an issue.

Good Luck!
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP