This function is in a separate .cpp file from my main, where it is called. I am really new to STL, and think that the problem has something to do with the parameter, but I don't know what. Here is my error message:
error LNK2019: unresolved external symbol....
in this function:
Thanks!
error LNK2019: unresolved external symbol....
in this function:
Code:
void printS(list<studentdata>::iterator i)
{
cout<<"\n\tID number\t"<<i->getIDnumber();
cout<<"\n\tLast name\t"<<i->getlname();
cout<<"\n\tFirst name\t"<<i->getfname();
cout<<"\n\tMajor\t\t"<<i->getmajor();
cout<<"\n\tClass\t\t"<<i->getyear()<<endl;
}
Comment