So, i wanted to create a program that picks out simple strings from an array, it sounded pretty simple to me but then i ran into problems. Here's what i wrote:
int pickjob;
string jobs[] = {Police Officer, Fireman, Vet, Doctor, Nurse, Chemist, Waiter};
job1 = jobs[rand()%7];
job2 = jobs[rand()%7];
job3 = jobs[rand()%7];
cout << "Here i found some jobs for you, check them out\n1." << job1 << "\n2." << job2 << "\n3." << job3 << "\nGo Head and pick one out" << endl;
cin >> pickjob;
//Rest of code is below, i'll put it in if you need it ;)
But my problem was that everytime i ran the program the same jobs appeared everytime (Im a amaetur at C++, so if i sound stupid forgive me), so how do i make a program where it prints out diffrent jobs every time from the array.