Home > Back-end >  How to read a two-dimensional array keyboard a [n] [2] (n unknown)
How to read a two-dimensional array keyboard a [n] [2] (n unknown)

Time:10-04

C + + programming encountered a problem,
Keyboard input of a set of number, the length of the unknown, to read and construct a two-dimensional array to save, if how to read the data, I have a question, use the cin, how to judge whether the data has been entered?
Please instruct, thanked first!

CodePudding user response:

Can make an illegal Numbers such as 1, enter the number and then end
  • Related