• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
胡卫军
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2014年7月31日
连接数据库
摘要: 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)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3