10 2016 档案

摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.I... 阅读全文
posted @ 2016-10-30 21:06 影落明湖 阅读(168) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字符串方法-IP解析 { class Program { #region 练习6 //stat... 阅读全文
posted @ 2016-10-30 13:45 影落明湖 阅读(588) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace test { class QuickSort { static void Main(string[] args) { ... 阅读全文
posted @ 2016-10-30 12:04 影落明湖 阅读(237) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO... 阅读全文
posted @ 2016-10-29 19:09 影落明湖 阅读(2346) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.I... 阅读全文
posted @ 2016-10-28 20:39 影落明湖 阅读(340) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 取年月日的字符串方法 { class Program { static voi... 阅读全文
posted @ 2016-10-28 09:45 影落明湖 阅读(3034) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 简化的MVC-导入模板HTML,导入数据txt,用字符串方法生成JS菜单 { class Progr... 阅读全文
posted @ 2016-10-27 22:21 影落明湖 阅读(681) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 索引器的使用 { class Program { static void Main(string[] args... 阅读全文
posted @ 2016-10-26 21:30 影落明湖 阅读(209) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 打开文件练习 { class Program ... 阅读全文
posted @ 2016-10-26 14:29 影落明湖 阅读(209) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 泛型委托 { public delegate int DelCompare(T t1, T t2); // public del... 阅读全文
posted @ 2016-10-25 22:48 影落明湖 阅读(166) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace 创建带属性的XML文档 { class Program { static ... 阅读全文
posted @ 2016-10-24 23:28 影落明湖 阅读(358) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace 创建XML { class Program { static void M... 阅读全文
posted @ 2016-10-24 23:27 影落明湖 阅读(212) 评论(0) 推荐(0)
摘要:索引器(C# 编程指南) Visual Studio 2015 其他版本 索引器允许类或结构的实例就像数组一样进行索引。 索引器类似于属性,不同之处在于它们的取值函数采用参数。 在下面的示例中,定义了一个泛型类,并为其提供了简单的 get 和 set 取值函数方法(作为分配和检索值的方法)。 Program 类创建了此类的一个实例,用于存储字符串。 C# class SampleColl... 阅读全文
posted @ 2016-10-24 22:29 影落明湖 阅读(285) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tas... 阅读全文
posted @ 2016-10-24 21:25 影落明湖 阅读(311) 评论(0) 推荐(0)
摘要://练习:把123转换为:壹贰叁。Dictionary "1一 2二 3三 4四 5五 6六 7七 8八 9九" string str = "1一 2二 3三 4四 5五 6六 7七 8八 9九"; //123 一二三 Dictionary dic = new Diction... 阅读全文
posted @ 2016-10-23 10:44 影落明湖 阅读(526) 评论(0) 推荐(0)
摘要://案例:把分拣奇偶数的程序用泛型实现。int[] nums={1,2,3,4,5,6,7,8,9};奇数在左边 偶数在右边 int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; List listJi = new List(); List listOu = new List(); ... 阅读全文
posted @ 2016-10-23 09:42 影落明湖 阅读(813) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _计算形状 { class Program { static void Main(string[] args)... 阅读全文
posted @ 2016-10-23 09:40 影落明湖 阅读(986) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 简单工厂设计模式计算器 { class Program { static void Main(string[] ... 阅读全文
posted @ 2016-10-21 22:29 影落明湖 阅读(199) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _模拟磁盘打开文件 { class Progra... 阅读全文
posted @ 2016-10-21 20:44 影落明湖 阅读(329) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.... 阅读全文
posted @ 2016-10-20 20:52 影落明湖 阅读(324) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; u... 阅读全文
posted @ 2016-10-20 10:01 影落明湖 阅读(9684) 评论(1) 推荐(1)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net; using System.Net.Sockets; u... 阅读全文
posted @ 2016-10-20 09:57 影落明湖 阅读(6367) 评论(0) 推荐(0)
摘要:C#版 Socket编程(最简单的Socket通信功能) 示例程序是同步套接字程序,功能很简单,只是客户端发给服务器一条信息,服务器向客户端返回一条信息;这里只是一个简单的示例,是一个最基本的socket编程流程,在接下来的文章中,会依次记录套接字的同步和异步,以及它们的区别。 下面是示例程序的简单步骤说明 服务器端: 第一步:用指定的端口号和服务器的ip建立一个EndPoint对像; 第二... 阅读全文
posted @ 2016-10-19 20:03 影落明湖 阅读(1376) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace _01MD5加密 { class Program { ... 阅读全文
posted @ 2016-10-15 17:30 影落明湖 阅读(528) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _16超市收银系统 { class CangKu { List> list = new List>(); ... 阅读全文
posted @ 2016-10-15 15:46 影落明湖 阅读(575) 评论(0) 推荐(0)
摘要://序列化和反序列化//序列化用于网络传输,序列化转对象为二进制无返回值,反序列化转二进制为对象有返回值。VS里面可以查看自动提示。using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; ... 阅读全文
posted @ 2016-10-15 14:02 影落明湖 阅读(141) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03简单工厂设计模式 { class Program { static void Main(string[] ... 阅读全文
posted @ 2016-10-15 13:09 影落明湖 阅读(192) 评论(0) 推荐(0)
摘要://多态 模拟 移动硬盘 插入电脑 读写,方法1传参,方法2属性赋值 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Progr... 阅读全文
posted @ 2016-10-15 11:45 影落明湖 阅读(403) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication4 { class Program { static void Main(s... 阅读全文
posted @ 2016-10-15 10:29 影落明湖 阅读(166) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { s... 阅读全文
posted @ 2016-10-15 00:19 影落明湖 阅读(1898) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { s... 阅读全文
posted @ 2016-10-14 21:43 影落明湖 阅读(386) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(s... 阅读全文
posted @ 2016-10-13 00:06 影落明湖 阅读(210) 评论(0) 推荐(0)
摘要:---求平均工资 SELECT AVG(sal) FROM emp; -----------大于平均工资 SELECT e.ename,e.job,e.sal FROM emp e WHERE e.sal>(SELECT AVG(sal) FROM emp) -------- --e领导编号=m雇员编号 --emp雇员表,dept部门表 SELECT e.ename 雇员姓名,e.job 雇... 阅读全文
posted @ 2016-10-01 23:57 影落明湖 阅读(781) 评论(0) 推荐(0)