Hey, Im trying to make a program to help me study vocab. Its mostly just to learn c++, but im having some problems with the following code.

for(int b=0;b<numWords;b++)
{
system("cls");

randomNum = rand()%numWords;

cout<<word[randomNum]<<endl;

getline(cin, guess);

if(guess == definition[randomNum])
cout<<"Correct"<<endl;
else
{
cout<<"Incorrect"<<endl;
cout<<definition[randomNum];
}

for(int x=0;x<200000000;x++){}//pause
}

Ok, so the program inputs the vocab words and their defnitions. It will go through the loop as many times as there are words. It picks a random number, and displays that word. I guess, then it tells me if its correct or not, and if not displays the correct answer.

Problem is, the last cout, if i get the answer wrong, isnt working. For example if the word is evil, and i type nice (mean being correct), it will output incorrect, then pause, but the correct answer will not come up until later. if the next word is cow, it will display meancow (mean was the answer to evil). I have no clue if this will make sense to anyone, but if you have any ideas it would be appreciated. Thanks. Oh and I do have an ignore statement higher in the program, so thats not causing the problem.