- 博客(13)
- 收藏
- 关注
原创 File和FileInfo
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.W...
2018-07-31 19:58:44
813
原创 C# 泛型接口
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace GenericInterface1{ class Program { public interface MyGe...
2018-07-31 17:01:11
3239
原创 C#7_31练习_计算字符串中每种字母出现的次数。
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;namespace ConsoleApplication27{ class Program {...
2018-07-31 15:17:28
982
原创 C# 泛型类的集合和非泛型类的集合区别
using System.Collections;//非泛型类集合的命名空间。//非泛型类的集合 不固定数据类型using System.Collections.Generic;//泛型类集合的命名空间。<1>非泛型类的集合和泛型类的集合的区别前者是不固定数据类型 ,后者固定数据类型比如非泛型集合的ArrayList及Hashtable.只要定义了ArrayLis...
2018-07-30 17:34:05
2586
原创 C#hashtable的基本用法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Collections;//提供快速的查询。元素的存储与顺序无关。不能在指定位置插入元素,//因为它本身没有有效的排序。感觉它的优点体现在...
2018-07-30 16:55:41
343
原创 JavaScript 文本输入框限制输入个数,显示剩余输入字数
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form name="myform" act
2018-07-30 15:03:30
2104
原创 C#迭代器的基本应用
using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Thre...
2018-07-29 17:05:41
484
原创 C#接口类的理解
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication11{ class Program { static void Main(...
2018-07-24 08:35:53
353
原创 C#练习—冒泡排序和选择排序
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication9{ class Program { static void Main(...
2018-07-20 15:08:25
360
原创 C# 抽象类的理解
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication5{ class Program { static void Ma...
2018-07-19 19:56:07
477
原创 c# 类的特性7_11
1》类的封装在面向对象编程中,大多数都是以类作为数据封装的基本单位。类将数据和操作数据的方法结合成一个单位。设计类时,不希望直接存取类中的数据,而是希望通过方法来存取数据,这样就可以达到封装数据的目的,方便以后的维护升级,也可以在操作数据时多一层判断。 此外,封装还可以解决数据存取的权限问题,可以使用封装将数据隐藏起来,形成一个封闭的空间,然后可以设置哪些数据只能在这个空间中使用,...
2018-07-11 10:17:55
194
原创 C#基础7_10_静态类
1》创建静态类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace WindowsFormsApplication2{ //定义静态类,静态类与非静态类的重要区别在于静态类不能实例化,也...
2018-07-10 11:10:33
186
原创 C#基础2018_7_9
1.比较字符串相等的方法(创建窗体应用程序): string text1 = "周一"; string text2 = "周一"; if (text1 == text2)//第1种,直接使用== int text3 = text1.CompareTo(text2);//第2种,CompareTo()返回类型为整型,相等为0,不然...
2018-07-09 22:00:04
214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人