王超洋 发表于 2012-5-19 21:11 我把你代码改了一下,这样就可以了:你可以比较一下, if (input == "end")下面的代码要写到catch里,不然 ...
王国文 发表于 2012-5-19 22:46 你的程序不管用户怎么输入都会输出:“数字格式不正确”