Sorting Out The C From The C++
Ok, so I bought the book "Beginning Game Programming" by J. S. Harbour which includes Direct X. And I think I follow it really well (well the 2D the 3d seems harder and not very indepth so I will look at 2D games for the moment). But the book said it was written mostly in C and I am a C++ guy but it didn't seem to heavily reliant on C so I bought it. I am just trying to come to terms with where it is written in C:
Mr Harbour uses typedef structs in the book for things like sprites, but is it common practice to use classes with C++ or doesn't it matter?
For getting the file name of the image file he used sprintf() with a variable that incremented to alter the file name (sorry that is pretty vague butI don't have the book with me). What is the C++ equiv. to this?
Also is things like d3dev->BeginScene() a correct sysntax in C++ and all other calls like it.
P.S Again sorry if all this is really vague.