上一页 1 ··· 3 4 5 6 7
摘要: 小程序。找和七有关的数字 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) 编辑
摘要: 隐式转换:一般是低类型向高类型转化,能够保证值不发生变化。 隐式数值C#数据类型转换: 从sbyte 到 short、int、long、float、double 或 decimal。 从byte 到 short、ushort、int、uint、long、ulong、float double 或 de 阅读全文
posted @ 2016-04-12 22:56 五月十九 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 前两天刚刚接触编程,用的是C#。开始确实枯燥,但是今天的感觉就好多了,还挺有意思。根据老师讲的课程自己编写了小程序,运行起来还不错。在这里分享下。 关于时间安排的小程序: int sj; int aa; string noon; string jg; Console.WriteLine("我是时间小 阅读全文
posted @ 2016-04-12 22:31 五月十九 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7