This problem has been a long time, do not know right, I hope to see the predecessors to help correct ...
Today in the writing practice knocking code, encountered before have not noticed a problem, in the console input can not enter the Chinese content you want;
Finally, after repeated testing, found that there is a reminder statement output, to remind you what to enter in the console what content (if the string type, the beginning
To enter the first character is Chinese characters, before entering, to ensure that the English character input status, enter one or two English characters after the deletion, and then converted to Chinese
Character state, you can enter the Chinese characters. A simpler approach is to move the pointer to a reminder statement or to the next line.
The following figure, after entering the int type number press ENTER, directly in the Chinese input state to the console for the input words will find the input failed:
The following figure, after entering the int type number press ENTER, confirm is the English input state and the console for the English character input, delete and then enter the
Text character, enter success:
This problem has been a long time, do not know right, I hope to see the predecessors to help correct ...