Home > Back-end >  ACM input problem
ACM input problem

Time:09-22

I didn't see the understand that Hits the tip of what know input end? I use the scanf ()==EOF is not judged by

CodePudding user response:

The scanf the end, a special characters such as input q again and press enter and you think that the end of the input

CodePudding user response:

Because the scanf is a built-in function return value, the number of digits in a return value==the scanf read

CodePudding user response:

The scanf (" XXX ", & amp; XXX)!=EOF

Under Windows is input keyboard shortcuts: CTR + z
Linux input keyboard shortcuts: CTR + d

CodePudding user response:

reference 3 building self-confidence boy reply:
the scanf (" XXX ", & amp; XXX)!=EOF

Under Windows is input keyboard shortcuts: CTR + z
Linux input keyboard shortcuts: CTR + d

This is the ACM online, he will automatically input to your program, check the output
  • Related