摘要: 题一:我的code/// /// 使用方法输入一个整数,使用方法输入一个范围内的数,比如(16-25)之内的数字。 /// class Program { static int ReadInt(){ do { Co... 阅读全文
posted @ 2013-11-19 22:35 我叫小菜 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 今天,我写了一个读取整数的函数,如下:static int ReadInt(){ int inputNum; bool IsNumber = false; do { Console.WriteLine("... 阅读全文
posted @ 2013-11-19 18:54 我叫小菜 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 今天,我写了一个读取整数的函数,如下:static int ReadInt(){ int inputNum; bool IsNumber = false; do { Console.WriteLine("请输入一个整数"); try { inputNum = Convert.ToInt32(Console.ReadLine()); IsNumber = true; ... 阅读全文
posted @ 2013-11-19 18:50 我叫小菜 阅读(106) 评论(0) 推荐(0) 编辑