摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Data.SqlClient; using System.Con... 阅读全文
posted @ 2014-07-31 09:43
胡卫军
阅读(137)
评论(0)
推荐(0)
摘要:
调用string mypwd = CommomLayer.MyEncryption.GetMD5Encording(pwd); using System; using System.Collections.Generic; using System.Security.Cryptography; us... 阅读全文
posted @ 2014-07-31 09:42
胡卫军
阅读(176)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace ConsoleApplication1 { class Program { static void Ma... 阅读全文
posted @ 2014-07-31 09:23
胡卫军
阅读(195)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using graphlei;namespace graphlei { /// /// 图形类 /// public... 阅读全文
posted @ 2014-07-31 09:21
胡卫军
阅读(111)
评论(0)
推荐(0)
摘要:
#region 数组 最大值 最小值 平均值 求和 冒泡排序 int[] arrag = new int[5] { 31, 62, 83, 54, 85 }; for (int i = 0; i arrag[j]) { int myarrag; myarrag = arrag[i]; a... 阅读全文
posted @ 2014-07-31 09:20
胡卫军
阅读(137)
评论(0)
推荐(0)
摘要:
enum Day { sat = 10, sun, mom, tus, wes, fos, fie, fri }; static void Main(string[] args) { int x = (int)Day.sat; int y = (int)Day.wes; Console.WriteL... 阅读全文
posted @ 2014-07-31 09:18
胡卫军
阅读(77)
评论(0)
推荐(0)
摘要:
1到4的随机数Random Random1 = new Random(); int i = Random1.Next(1,4); Console.WriteLine(i); Console.ReadKey(); 阅读全文
posted @ 2014-07-31 09:14
胡卫军
阅读(135)
评论(0)
推荐(0)
摘要:
参数数组:关键字params,接受参数,多余的都加到数组中static void Main(string[] args) { meas("1","2","3") } public static void meas(string paramNumber, params string[] arrag) ... 阅读全文
posted @ 2014-07-31 09:13
胡卫军
阅读(110)
评论(0)
推荐(0)
摘要:
字符串的应用 #region 查找字符 //string str = "123456"; //foreach (char time in str) //{ // Console.WriteLine("{0}", time); //} //Console.ReadKey(); #endr... 阅读全文
posted @ 2014-07-31 09:12
胡卫军
阅读(124)
评论(0)
推荐(0)
摘要:
//私有的:private //公有的:public //受保护的:protected 只能在只有在分类和子类中可以访问 //静态的 static 无需实例化,可直接调用,不能用private定义 //密封的 sealed 不能被重写,不能别继承, //抽象的 abstact 阅读全文
posted @ 2014-07-31 09:11
胡卫军
阅读(97)
评论(0)
推荐(0)
浙公网安备 33010602011771号