Hi all,
I'm attempting to make an LCD screen display randomized riddles.
I've tried to upload the program, but I get an error message that says "expected ';' before '<' token" on line 8. I'm not sure if I can't put a semi-colon after the for loop or if the case needs a break; at the end.
case 8: for (int i = 0, i < 5, i++){
screen.print(riddle8[i]);
enter();
screen.print(riddle8[i+1]);
delay(2000); screen.clear();
screen.print(answer[8]); delay(2500);
};
case 9: for (int i = 0, i < 9, i++){
screen.print(riddle9[i]);
enter();
screen.print(riddle9[i+1]);
delay(2000); screen.clear();
screen.print(answer[9]); delay(2500);
};
I've checked previous lines, but the rest if the "cases" are nearly identical to case 9. Not sure what (or even where) the problem is.
Thanks,
- D