![]() |
| | #1 |
| I am he who is the man! Join Date: Sep 2002
Posts: 361
| |
| Stan100 is offline | |
| | #2 |
| Registered User Join Date: Apr 2002
Posts: 1,571
| |
| MrWizard is offline | |
| | #3 |
| Registered User Join Date: Aug 2002
Posts: 102
| Stan instead of posting a question everytime you get to a small hurdle you wish to cross I have a suggestion for you : By a book about Windows game programming and download the DirectX 7 docs... Step #1 Read the book. Step #2 Read the docs. Now repeat the process several times, you should have an understanding of how to load a bitmap file to the screen via DirectX. Alas you need the DirectX SDK! What now!? Well you download the 'SDK' from microsoft's website. Although this maybe more than you can chew, it is what you got to do. One more thing, you can see what is in a header file by... opening it. |
| Kirdra is offline | |
| | #4 |
| I am he who is the man! Join Date: Sep 2002
Posts: 361
| Yo, I'm only 13 dude, and I've been doing this for about 2mths. Maybe I need a better book because Sams Teach Yourself C++ in 24 hours isn't helping. I'm trying to do the best I can. Chill |
| Stan100 is offline | |
| | #5 |
| Banned Join Date: Aug 2001 Location: Visalia, CA, USA
Posts: 3,699
| *sigh* this isn't that hard to understand. And by the way, any book with a title such as "Become a millionaire in just one month" or "Sailing for dummies" is not the best place to start. Code: //this is main.c
#include <iostream>
#include "myfile.h"
int MyClass :: stuff() {
return this->x;
}
void MyClass :: whatever(int &n) {
n = this->y;
}
int main() {
MyClass mc;
cout << mc.stuff();
}
Code: class MyClass {
private:
int x, y;
public:
int stuff();
void whatever(int &);
};
This is why header files are there. Okay, i'm sure you are familiar with all this. My point here is that rather than focusing on what each header contains, you should focus on learning what functions and classes you need. From that you will memorize the headers that you use most. |
| master5001 is offline | |
| | #6 | |
| and the hat of marbles Join Date: May 2002 Location: Lund, Sweden
Posts: 2,041
| Quote:
__________________ Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling | |
| Sang-drax is offline | |
| | #7 |
| Banned Join Date: Aug 2001 Location: Visalia, CA, USA
Posts: 3,699
| Sang-drax, I can't disagree there but "Sams Teach Yourself C++ in 24 hours" is not. My point was not that books that contain the word "dummy" in the title are bad. My point was books that have overly ambitious titles are bad. Books like "Sams Teach Yourself C++ in 24 hours" are very effective if you have some programming background, otherwise you end up like poor stan over here. |
| master5001 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| debug assertion failed! | chintugavali | C Programming | 4 | 12-11-2007 06:23 AM |
| Header file include order | cunnus88 | C++ Programming | 6 | 05-17-2006 03:22 PM |
| include files that are'nt in compiler's directory | vaibhav | C++ Programming | 10 | 03-25-2006 11:45 AM |
| Include files | disruptivetech | C++ Programming | 7 | 07-12-2005 09:52 AM |
| include library header in header files | Raison | C++ Programming | 6 | 09-27-2004 02:50 AM |