2017年11月2日
摘要: string str = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890"; Random ran = new Random(); int r = ran.Next(0, str.Length); string a = 阅读全文
posted @ 2017-11-02 15:44 段了的弦 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 要判断时间合不合格,闰不闰年啊,然后还有Timespan 类型 -- Console.Write("请输入年:"); int n = int.Parse(Console.ReadLine()); Console.Write("请输入月:"); int y = int.Parse(Console.Re 阅读全文
posted @ 2017-11-02 15:40 段了的弦 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 突然发现之前做闰年那题的时候有一个错误,就是 (n % 4 == 0 && n % 100 != 0) || n % 400 == 0 这是闰年, 当时做的是非闰年就无非是把不等改为等,等改为不等,像这样 (n % 4 != 0 && n % 100 == 0) || n % 400 != 0 其实 阅读全文
posted @ 2017-11-02 15:30 段了的弦 阅读(148) 评论(0) 推荐(0) 编辑