its making me mad now
here is this code:
it gives an access violation error.Code:curr=first; int size=curr->resp.size(); //ERROR HERE if(curr!=NULL){ return curr->resp[RndNum(size-1)]; }
lets say if i type "hello" into the prompt, itll run that peice of code., it gives this error:
"Unhandled exception at 0x0041bd36 in aimoduletest.exe: 0xC0000005: Access violation reading location 0x00000014."
and cites the code where the size() function of hte vector is.
then there is this code:
that runs if you type debug into the prompt, itll return everything in that vector. i dont get why that one works, but the one above it doesnt. it returns the size fine below it, but i dunno above itCode:curr=first; while(curr!=NULL){ for(int i=0;i<curr->resp.size();i++){ retval+=curr->resp[i]; retval+='\n'; } curr=curr->next; }