![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
sono_yin
这个作者很懒,什么都没留下…
展开
-
C#判断奇偶数的函數
// 现代流行的"程序员"public static bool IsOdd(int n) ...{ while (true) ...{ switch (n) ...{ case 1: return true; case 0: return false; } n -= 2;原创 2007-10-30 18:17:00 · 14293 阅读 · 0 评论 -
c#常用函数列表
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre原创 2007-10-30 22:16:00 · 909 阅读 · 0 评论