原来的是```scanf(" %c",opt);```吗?如果是,那问题就解决了,就是你```scanf```写错了 by tyakasha @ 2023-02-26 08:25:53
你getchar后面加个while就行 by 5_Lei @ 2023-02-26 08:33:01