摘要: Console.WriteLine("这是一个判断你的体型是否标准的程序"); Console.Write("性别"); string sex = Console.ReadLine(); Console.Write("身高"); double high = Convert.ToDouble(Cons 阅读全文
posted @ 2016-04-13 21:41 五月十九 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Console.WriteLine("这是一个和计算机猜拳的小游戏\n规则是0:剪刀,1:石头,2:布"); int b = Convert.ToInt32(Console.ReadLine()); Random rand = new Random(); int a = rand.Next(3); 阅读全文
posted @ 2016-04-13 21:15 五月十九 阅读(378) 评论(0) 推荐(0) 编辑
摘要: Console.ReadLine("请输入年份,月份,天数"); int year = Convert.ToInt32(Console.ReadLine()); int month = Convert.ToInt32(Console.ReadLine()); int day = Convert.To 阅读全文
posted @ 2016-04-13 20:54 五月十九 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 首先要有一个目的。 心里想好达到这个目的的逻辑。 确定下要用到 的数据类型 整型(整数) 浮点型(小数) 字符型(单字符) 布尔型(就是对和错) 字符串(一串字符,经常用到) 经常用的就有short,int,long,长度依次增加 浮点型就是小数,float,double,decimal 单字符ch 阅读全文
posted @ 2016-04-13 20:35 五月十九 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 小程序。找和七有关的数字 int a; bool ok1, ok2, ok3, ok; a = Convert.ToInt32(Console.ReadLine()); ok1 = a % 7 == 0; ok2 = a / 7 == 7; ok3 = a / 10 == 7; ok = ok1 | 阅读全文
posted @ 2016-04-13 19:39 五月十九 阅读(1048) 评论(0) 推荐(0) 编辑