   how do c++ and gamedev go together?
  I am in the procces of learning c++. I have just finished learning about functions. my question though, is how all of this relates to gaming. how would I take everything I have learned, and make an rpg out of it. I know I have only started, but what I know doesnt seem to relate to games. does anybody know of any c++ tutorials aimed at game development. what I mean, is that it teaches you C++ from the ground up as if you never learned it, but the examples are aimed more at gamedev. like instead of making a celsius to farhinhiet converter with the knowlage I know, I make a small game, or a part of it. anybody know of anything like that   
you can see it this way:An RPG game is more or less a complex database with a nice interface.so if you've learned how to create and manage structures and databases, you're at one step :D   ;  Stick with the tutorial(s)/book(s) you are using.  Worry about understanding the principles of programming first before trying to figure out how to make a game.  If you truely understand the principles underlying what you're doing, how you can make a game using something like C++ should become aparent.Quote: I have just finished learning about functions. my question though, is how all of this relates to gaming.Well functions are effectively things you call to do stuff (very non technical explanation there [smile]).  For example in a game, say a text rpg, the player may type in 'GO NORTH'.  A function would then be run to process the command.  This function would run other functions to do the command, e.g. one function it'd run would alter a variable indicating the players place in the game, another would print out the new rooms description etc.Functions are also vital for things like libraries, where you call functions you haven't implemented, but do things you want to get done.  E.g. in an rpg you'd use functions to put text on the screen, or draw the player in the required place (in the case of a graphcal RPG).When you're just beginning programming can be very confusing, and (IMO) C++ is not the best language to begin with.  But remember that in programming the language is not that important, it's merely a tool.  The important thing is the principles and the theory behind programming e.g. things such as functions and how you use them.  Data structures and algorithms are also very important e.g. things such as lists which can be used for storing game objects these are data structures, and algorithms which operate upon data to do something useful, e.g. a sort algorithm could sort a list.   ;  ok I think I understand all of that. thanks for your help. but do you know of any online tutorial like the one I described above? If not could you just tell me of a really good onlin tutorial. oh and when I said I didnt know how this relates to gaming after I said I just learned functions, I meant everything I had leanred so far, not just functions.   ;  Bah!C++ is a great first language. If you can do that with any success, you'll have no problem picking up other languages.What you need to do to learn how this ties into game programming, is look into a graphics package. They are essentially a set of C or C++ functions that someone put together to make displaying things visually easier. OpenGL and DirectX are the primary means of doing this.I can elaborate further, and if you want more information about anything, send me a private message whenever you want, i'm happy to answer questions.   ;  Take a look at the gamedev.net articles section, right here on this lovely site. You will find things that are well above you right now, but most of them will at least begin to answer your questions. Please also google for "game loop".   ;  I know of no online tutorials which teach C++ in a game programming context, but that doesn't mean there aren't some out there (google is your friend).  This book may be worth taking a look at, as it seems to be what you want.  I've never read it however so I can't tell you if it's any good or not.   ;  Most programming is done through problem solving. Therefore you should look into applying the C++ syntax to get things like the game loop and how to get input and how to make objects link to each other(Linked Lists).   ;  Well when you start out learning plain c++ then it's IMHO not a good idea to mix it up with gamedev. Examples should be as simple as possible and games are rarely simple.I don't know if there exists a basic c++ tutorial which has it's examples lend towards gamedev. On a quick google serach i found this:http://www.intap.net/~drw/cpp/cpp06_01.htm   ;  Hi,basically, a RPG is no more than a bunch of functions you know.Learning C++ ( or any other programming language ) allows you to write functions, structures and classes that do what you want them to do.It is you that defines the behaviour of the functions, there really is no specific "C++ for RPG". However there are a lot of "Programming RPG" books, but they are more tutorials on how to manage your structures, your classes, and your functions to make a good RPG, than tutorials on "learning C++ for RPG".For a basic example, take the function :int hp = 100;void heal( int pNumberOfHP ){   hp = hp + pNumberOfHP ;}That's a very basic function that could be used to heal a PC in a RPG for example ( a very very very basic one :).However, it's all in the name of the variables and the functions... It could have been named 'foobar' instead of heal, it would have act the same.If you really want to program RPG, i advice you to :1) learn C++ ( or any other language in fact, but it looks like you're in C++ now ). The examples and traditionnal functions are just there to make you learn.2) Try to use what you have learned for YOUR functions. Create a simple "fight" function for example or something like that. That way you'll make in practice what you have learned, and you'll quickly be proud of what you have done.3) when you have a fairly level of C++, or when you think it is time to move to something bigger, why not read articles on "what is useful for RPG programming" and try to implement related things. There's a lot of them everywhere ( try google with "RPG programming", you'll see).