I am getting the error "error: expected unqualified-id before 'do'" multiple times for every do{ }while(); loop I have... Any help?


  • 1
    Perhaps you should cut down the amount of data you have (say, 3 pokemon and 7 moves) until you have working code. Mar 17 '14 at 18:53
  • I cut down the code as you said... Much easier to work with... Thanks!
    – Josh
    Mar 17 '14 at 19:02
  • From the code you posted, I would highly advise you to follow a C or C++ tutorial, as it seems quite obvious to me that you are new to C/C++ programming. There are a bunch of these on Internet.
    – jfpoilpret
    Mar 17 '14 at 19:06
  • The do whiles are outside setup or loop. Mar 17 '14 at 19:38
  • This question appears to be off-topic because it is a general C/C++ programming problem. It is not specific to Arduino at all. Mar 18 '14 at 16:13

The do whiles are outside of the setup() or loop(), so they won't work.

I would suggest doing a simple C/C++ tutorial like this one to get up to speed with how things work.

Not the answer you're looking for? Browse other questions tagged or ask your own question.