
please wait
|
|
i
? Or are you going to leave it with the value 0, so always indexing the beginning of the array.
i
inside the loop, so it loops forever with i==0. To fix it, add i++;
at line 25. Better yet, use a for
loop:
|
|
|
|
break;
right after the cout
statement.