View Single Post
Old 03-21-2007, 10:02 AM   #1 (permalink)
weewun
 
True Techie

Join Date: Dec 2004

Posts: 138

weewun is on a distinguished road

Default problem with my C++ class'

hey.

im currently making a program in C++ and have a bit of trouble with the class'.
in a header file, i am declareing 2 classes, playerData, and item. in the playerData class, there is a function that requires an 'item' object. when i try to compile, it says that 'item was not declared in this scope'.

i am curious as to the code to insert to let the compiler know that there is an 'item' class comming later, similar to letting the compiler know that there is a function comming. cheers for any help.
weewun is offline