Name: Aurath 2006-12-04 22:18
So i'm learning c++. I know its a horrible language but I need to learn it for several reasons that have nothing to do with the body of this post.
I've got a big project due tomorrow so I would appreciate help before noon tomorrow if at all possible (its 7pm here).
Anyway...
Ive got a .h file that holds the list of function declarations. One of said functions takes the class "Book" that I wrote and is contained in Book.cpp and Book.h. The function declaration that I'm having trouble with is simply this:
void print(Book);
Why does it not recognize "Book" as an identifier? I included Book.h and it recognizes it from all the .cpp files that i'm using. What arcane peice of c++ am I missing that requires different class identifier handling in .h files than .cpp?
My life is in your hands. Please help.
I've got a big project due tomorrow so I would appreciate help before noon tomorrow if at all possible (its 7pm here).
Anyway...
Ive got a .h file that holds the list of function declarations. One of said functions takes the class "Book" that I wrote and is contained in Book.cpp and Book.h. The function declaration that I'm having trouble with is simply this:
void print(Book);
Why does it not recognize "Book" as an identifier? I included Book.h and it recognizes it from all the .cpp files that i'm using. What arcane peice of c++ am I missing that requires different class identifier handling in .h files than .cpp?
My life is in your hands. Please help.