I still do not understand this book on game programming in C + +! [computer game programming] [directx 8 0]

Q: I just bought Introduction to with DirectX 8.0 by Ian Parberr, Ph.D. and I am an amateur in C + + I know now, because my teacher is a total dumbass and not tell diddly. This book says I need to know:

1.) Classes, with private and public member variables and functions (I know this)
2.) Derived classes, protected members (I know this)
3.) Function overloading (Do not know this) 9775 .034.) operators new and delete (do not know this)
5.) Call-by-reference parameters (Do not know if this is not familar with the name)
6.) Default parameters in functions (Nope, this is not either )
7.) contingent contract to use? operator (also not)

It give me the code for all demos and when I look across I still do not get. As you can imagine I am on myself as usual. I will return to this Clive Barker books so I will spend approximately $ 30 again. Should I buy a book Visual C + + 6.0? I am taking courses in summer for C + + for about 8 weeks 2 days a week for three hours a night. I really can not wait so long under C + + so I would like a book to teach myself to get. My high school C + + is a freakin joke so I know I do not have $ hit since the teacher is a flaming Jock learning. Go back to me.


Best Answer: Texts & Tutorials are broad.
=
Math texts teach multiplication and division, not just division.
=
C++
=
http://www.cplusplus.com/doc/tutorial/
http://www.cprogramming.com/tutorial/les…
=
Game Programming
http://www.cppgameprogramming.com/cgi/na…
http://www.toymaker.info/Games/html/begi…
=
Code::Blocks == Open Source C/C++ IDE
http://www.codeblocks.org/downloads/bina…
codeblocks-8.02mingw-setup.exe
=
Free Electronic Books
=
Thinking in C++ 2nd Edition by Bruce Eckel
Volume 1 & Volume 2
http://www.mindview.net/Books/TICPP/Thin…

Re:<< I don't know what to do now, maybe I'll try to become an author or a philosopher >>

An author will get critized by reviews who are out to draw blood.
A philosopher will get slammed by other egotistical peers who do not share his views.

A programmer only gets slammed by others who understand their thinking, have been in the hot seat before and are trying to help with constructive ideas.

If you can think logically and discect the problem into small managable bites, programming is feasible.


Re:Very good Becks. As for the other guys I think I finally give up on this stuff. It's impossible for me especially with my self-confidence and self-esteem so low. I don't know what to do now, maybe I'll try to become an author or a philosopher.:(

Re:reply to yer sig w00p

Theres a time to discriminate, hate every motherfuker that's in your way

beautiful people!


Re:The only thing missing from Eagle Keeper's explanation is call by reference parameters. Call by reference is used to pass the address of a parameter into the function so that the object pointed to by the address can be modified. This differs from regular pass by value since pass by value makes a copy of the object to be used in the function call, and any modifications are lost.

An example of a pass by reference call.
prototype:
void DoSomething(int* Ref);
call:
DoSomething(&MyInt);

Inside DoSomething, MyInt can be accessed (by using the name Ref), and any changes will be reflected when the function returns.

As you can see, the prototype and the function call are slightly different from a regular pass-by value form, which would have
void DoSomething(int Ref);
DoSomething(MyInt);
But modifications made to MyInt inside of DoSomething would be lost when DoSomething returned.

Hopefully that wasn't too confusing. I've been watching for your posts to see if I can help out with any of the game related stuff. :)


Re:<< 3.) Function overloading (Don't know this) >>

Allows you to call a function with different types of parameters but using the same name for the function.

<< 4.) The Operators New and Delete (Don't know these) >>

Same as malloc/dealloc

<< 5.) Call-by-reference parameters (Don't know this or not familar with the name) >>

<< 6.) Default parameters in functions (Nope, not this either) >>

If most of the time a parameter is the same when passed in, you can avoid putting it in the calling code. Position dependent within the calling sequence.

<< 7.) Conditional assignment using ? operator (Not this either) >>

Short cut for a if/the/else statement

These answers are not in detail, but it will give you a starting point where to start digging.

Game programing is more about manipulating images after you have programmed the basic functionality.


Re:Some good free books (http://www.mindview.net/Books)

You'll just need a C++ compiler and a decent text editor.


Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]