程序:
(这里文字是用来凑字数不用管dkvrdubduifblaieube;eohga;rohag;eigeao;rihgre;gkshrn;s)
使用 scanf 输入后,应该使用 getchar() 接收换行符,以免影响后续输入函数(如 gets)的正常使用。