Hi I have a question regarding run time check failure #3 in my case.. I'm using two if statement within the while loop. I learned failure #3 causes by not initializing variable. However I did before a while loop. And first if statement works, but when it reaches second if statement it stops.. Please advice me in this case.
Thanks in advance.
Justin
int count = 0;
while (1)
{
cap >> src;
if (count < 5)
{
cout << count << endl;
}
// error at the second if statement.
if (count == 4)
{
cout << "here" << end;
count = 0;
}
count += 1;
}
Aucun commentaire:
Enregistrer un commentaire