mappryan
Structural
- Mar 11, 2011
- 8
I am very inexperienced with while loops. I am trying to write a loop that checks all the answers in a vector and if they are "OK" then it outputs "OK". I keep getting an "array index invalid for this array problem". I have written a simplified example of this problem to post here. If someone could please take a look and explain what I am doing wrong it would be greatly appreciated. I believe it is due to my lack of knowledge/experience with using a while loop altogether. Thank you