A little help with member functions

This is a discussion on A little help with member functions within the C++ Programming forums, part of the General Programming Boards category; You include by using
Code:
#include "header.h"
. Notice the " " instead of < >, the " " say ...

. Notice the " " instead of < >, the " " say to the linker, look in the same directory as the .cpp file you are compiling. < > says to look in the included folders that are set up. In general adding your own custom headers to your /include/ folder in any compiler is not the way to go.

Well, I just tryed it and thanks! It makes multi file projects
as easy as showing up drunk to your sister's wedding!

On a completely unrealated topic, I used to think, to people
that used printf(), "You dinosour, if you're not going to use cout
and you're just going to do it the hard way, why don't you
manualy compile your code too!"... But I have since realized why
people use that garbage function that should be depricated,
It takes up way less space. stdio.h takes up less than 0.4% of
the space iostream takes up. iostream adds like 400kb to the exe
while stdio.h adds only like 0.6kb. However, iostream, with it's
nice cout and cin, are too much for me to give up.

Another thing to consider, is while it is many times larger, .4meg is almost nothing now-a-days. If your ram was limited to 16meg I can see nitpicking, but most people have 256+ if they bought their computer in recent years.

Hmmmmmm, Now I have another error! Now I made the class for player, and saved
the file and when I looked at my class browser it wasn't there! If that had been all
I probably wouldn't be writing this. Then I declared a player by the name of KILLER
and when I tryed to access the variabes inside the class by typing KILLER and then a .
it wouldn't pop the little list of members inside the class! And that can only mean that
my compiler won't register the class and I can't use it. Please help.

Have you tried compiling? Just because your autofill things don't work doesn't mean the code is wrong, type it out by hand and try and compile, if you are used to it typing it out for you, double check your capitolization and spelling if you get an error.

I started to type it out an I got an error message. My compiler does that somethimes.
It just picks a file and every time I do something in that file from then on it gives me a
"list index out of bounds nnn" message. I know it will continue to do so. Now my
class is messed up and my compiler is being a &^#*<. I would call this a bad day.
And it was capitalized correctly earlier. and I'm totaly sure of that because I checked it,
in addition it didn't show up in my class browser, which spells bad news. Okay it doesn't literaly spell bad news but you get the point. It's trying to kill me with meanness.

Okay, I have an even worse problem. I tryed to compile and now it says that my variables
that I declared as the classes I just wrote are "used as types but not defined as types"
I fear I may have to dump 347 lines of code on you guys. One point of intrest is that the
variables in question are declared inside classes.

When I try to compile it gives me all kinds of errors. Such as
Soandso is used as a type but not defined as a type. However
BOOK, ACC, WEAPON, and ARMOR are all classes and all
spelled correctly and so forth. If I lose the ITEM class, it compiles perfectly. Frustration has set in and I would like a bit more help. I thank everyone who has replied for their help.