I hate to be a bug, but i'm having a hell of a time figure out how to pass an array of OBJECTS to a function.
_________________________________________________
//FUNCTION DECLARATION
void Menu(stock);
void GetInfo(stock );
//ALL DONE IN MAIN..NOT CLASS
//ARRAY
stock s[2];
s[0] = stock("Toys R Us",50,2.99);
s[1] = stock("iCafe Canada",100, 6.99);
//FUNCTION CALL
Menu(*s);
//FUNCTION
void Menu(stock *s)
{
GetInfo(s);
}
void GetInfo( *s)
__________________________________________________ _
Now, if i remove the GetInfo Function, the program compiles fine, but then when i go to RUN i get a linking error.
unresolved external symbol "void __cdecl Menu(class stock)"
I dont get it, i don't know how to make a pointer out of this array of OBJECTS, because of the CONSTRUCTORS.
Any help would be greatly appretated.
Ulysses