One problem to the next, right? I can only hope that the reply to this will be a swift and helpful as the reply to the last was.
Okay, once again, I'll try to explain my self, so here goes. I have to include a random number in this game. I chose to make the number of years a random number. I did this:
CODE
cout<<"Arcan, your friend for the last " srand(time(NULL));
cout << rand() % 5 + 1 << " years tells you the city gives him the creeps."<<endl;
which I got following a tutorial on D.I.C... about, oh, maybe half an hour ago. I don't know what I did wrong, but it keeps telling me this: error C2146: syntax error : missing ';' before identifier 'srand'
I'll admit it freely; I'm an idiot at coding. I have no idea what that means. Where am I supposed to put a semicolon before srand if I'm using it to cout information?