Object Arrays to Functions
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.
void GetInfo(stock );
//ALL DONE IN MAIN..NOT CLASS
s = stock("Toys R Us",50,2.99);
s = stock("iCafe Canada",100, 6.99);
void Menu(stock *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.