i am working with a vector of pointers to Job class objects(job class is one that i defined)
when a person in my game dies, a pointer to the job he once had is added to a vector to track jobs that have no labor.
anyway when i try to use these they dont work
this is what i tried:
for some reason i get this from the compiler:
any suggestions as to what i am doing wrong??
thanks alot
ken
when a person in my game dies, a pointer to the job he once had is added to a vector to track jobs that have no labor.
anyway when i try to use these they dont work
this is what i tried:
Code:
for(int x =0;x<emptyJobs.size();x++)
{
string s = *emptyJobs[x].getName();
if(unemp.size()==0)
addNews("a(n) "+s+" has no labor.");
}
Code:
[C++ Error] Keep.cpp(57): E2294 Structure required on left side of . or .*
thanks alot
ken
Comment