01 2018 档案

摘要:win10 1.切换中英输入法 ctrl+space eclipse 1.注释: 文本注释:shift+Alt+J 注释代码:ctrl+ / 2.提示代:Alt+ / 11 阅读全文
posted @ 2018-01-31 22:02 helloWorldhelloWorld 阅读(86) 评论(0) 推荐(0) 编辑
摘要:在异常处理中即使没有main函数 仍然可以正确执行 Exception 1.非检查异常:空指针异常,数组下标越界异常,类型转换异常,算术异常 2.检查异常:文件异常,SQL异常 1.try...catch...finnally简单例子 注:finally是一定执行的。打印输出异常信息是 (Excep 阅读全文
posted @ 2018-01-31 21:04 helloWorldhelloWorld 阅读(113) 评论(0) 推荐(0) 编辑
摘要:1.属性和索引练习 (1) 定义一个Student类,其包含属性:SId(学号), Name(姓名),Score(总分),并重载其构造方法,初始化其属性。 (2) 定义一个班级类ClassDemo,其包含属性Count(学生人数,只读),List<Student>(学生列表);定义其索引器,按照序号 阅读全文
posted @ 2018-01-22 20:21 helloWorldhelloWorld 阅读(134) 评论(0) 推荐(0) 编辑
摘要:1.编写Student类包含如下属性,并实现给属性赋值且打印出来 年龄(0-100)不符合的设为18 姓名(只读属性) 爱好(读写) public class Student { int age; public int Age { get { return age; } set { if (valu 阅读全文
posted @ 2018-01-21 11:04 helloWorldhelloWorld 阅读(835) 评论(0) 推荐(0) 编辑
摘要:1.下载地址链接 1.下载地址链接 https://m.baidu.com/from=1012852q/bd_page_type=1/ssid=0/uid=0/pu=usm%401%2Csz%40320_1004%2Cta%40iphone_2_7.0_11_9.3/baiduid=A782B008 阅读全文
posted @ 2018-01-20 09:16 helloWorldhelloWorld 阅读(2160) 评论(0) 推荐(0) 编辑
摘要:1.错误类型 在程序中发生的错误的类型有三种。它们是: 语法错误:语法错误发生在语句没有适当构造、关键字被拼错或标点被忽略的时候。 逻辑错误:逻辑错误发生在程序编译和运行正常但没有产生预期的结果的时候。 运行时错误:运行时错误发生在程序试图完成一个操作,但它在运行时不被允许。 2.异常类 许多异常类 阅读全文
posted @ 2018-01-18 11:32 helloWorldhelloWorld 阅读(166) 评论(0) 推荐(0) 编辑
摘要:1.C#中不允许多重继承 基类 派生类 (只能一个,此派生类不能再作为基类继续派生) 2.方法重写: 在基类中某方法可以由子类重新定义实现,则实现步骤如下 在基类中,可以使用关键字virtual来定义某方法为虚方法(virtual method),virtual关键字放在访问级别修饰符和方法返回数据 阅读全文
posted @ 2018-01-17 10:59 helloWorldhelloWorld 阅读(95) 评论(0) 推荐(0) 编辑
摘要:1、数制转换问题。数制转换问题是将任意一个非负的十进制数转换为其它进制的数,这是计算机实现计算的基本问题。其一般的解决方法的利用辗转相除法。以将一个十进制数N转换为八进制数为例进行说明。假设N=5142,示例图: N N/8(整除) N%8(求余) 低 5142 642 6 642 80 2 80 阅读全文
posted @ 2018-01-15 11:47 helloWorldhelloWorld 阅读(216) 评论(0) 推荐(0) 编辑
摘要:(一)功能: (1)可以存储任何类型的元素 (2)保证数据安全 (3)能省去装箱拆箱的性能开销 (二)常用的泛型集合 :List<T>类,Dictionary<K,V>类,stack<T>类,Queue<T>类 (三)语法 1.声明是什么类型的,则添加的元素必须是该类型 List<int> scor 阅读全文
posted @ 2018-01-14 21:10 helloWorldhelloWorld 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1.push将对象插入 System.Collections.Generic.Stack<T> 的顶部。 Stack st = new Stack(); //栈是先进后出 st.Push(1); st.Push(2); st.Push(3); st.Push(4); 2.peek读栈 (1) for 阅读全文
posted @ 2018-01-14 20:42 helloWorldhelloWorld 阅读(110) 评论(0) 推荐(0) 编辑
摘要:哈希表 是将数据作为一组键/值对来保存 查找效率高 ,里面没有顺序,键是唯一的 1.添加数据 Hashtable ha = new Hashtable(); ha.Add("name","xiaoxiao"); ha.Add("age", "21"); 2.遍历键 和遍历值 foreach (var 阅读全文
posted @ 2018-01-12 14:53 helloWorldhelloWorld 阅读(115) 评论(0) 推荐(0) 编辑
摘要:Array 是抽象基类,抽象基类不能创建它的对象 定义的数组: int[,] myArr4=new int[2,3]{{1,2,3},{4,5,6}}; int[, ,] myArr3 = new int[2,3,4]{ {{1,2,3,4},{1,2,3,4},{1,2,3,4}}, {{1,2, 阅读全文
posted @ 2018-01-12 10:28 helloWorldhelloWorld 阅读(117) 评论(0) 推荐(0) 编辑
摘要:1.string s1 = "abcdefghij"; string s2 = "kuo"; Console.WriteLine(s1.Clone());//实例 克隆方法 2. 比较字符串的Compare() int s3 = String.Compare("abc", "jko"); Conso 阅读全文
posted @ 2018-01-10 13:24 helloWorldhelloWorld 阅读(136) 评论(0) 推荐(0) 编辑
摘要:题目要求:首先使整个链路相通,之后阻断vlan10 访问外网服务器(202.1.1.2) 考察点:(1)三层交换机有路由功能(但是使用路由功能之前需要switch(config)#ip routing) (2)三层交换机不能设置端口的的入栈出栈 可以划分vlan 之后设置vlan的入栈出栈 步骤: 阅读全文
posted @ 2018-01-08 16:20 helloWorldhelloWorld 阅读(401) 评论(0) 推荐(0) 编辑
摘要:1.配置路由器端口ip,t同时启用端口ip,设置内网(注意内网外网区别) Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shut //启用端口ip R 阅读全文
posted @ 2018-01-07 20:14 helloWorldhelloWorld 阅读(1275) 评论(0) 推荐(0) 编辑
摘要:1.配置路由器的端口ip地址(注意外网和内网ip地址的设置) Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shut //启用端口ip Router( 阅读全文
posted @ 2018-01-07 19:45 helloWorldhelloWorld 阅读(2015) 评论(0) 推荐(0) 编辑
摘要:1.配置路由器端口ip(两个端口需要设置两个网段) Router(config)#inter f0/1 Router(confiog-if)#ip add 202.1.1.2 255.255.255.0 2.确定内网外网 Router(config)#inter f0/1 Router(config 阅读全文
posted @ 2018-01-07 15:55 helloWorldhelloWorld 阅读(603) 评论(0) 推荐(0) 编辑
摘要:1.首先使整个链路相同 (以Router0)为例子 (1).设置端口IP(需要给两个端口设置ip) Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no sh 阅读全文
posted @ 2018-01-07 09:10 helloWorldhelloWorld 阅读(172) 评论(0) 推荐(0) 编辑
摘要:1.首先使各终端相通(之后再确定控制那个PC不能访问) 采用配置RIP动态路由表 以Router5为例子 (1)设置端口ip(三个端口需要设置三个端口ip) Router(config)#inter f1/0 Router(config-if)#ip add 192.168.2.1 255.255. 阅读全文
posted @ 2018-01-04 19:25 helloWorldhelloWorld 阅读(124) 评论(0) 推荐(0) 编辑
摘要:1.配置PC的ip和网关(网关是与PC端相连的路由器端口的ip) 2.以Router为例子 (1)配置端口ip(两个端口需要设置两个ip) Router(config)#inter f0/0 Router(config-if)#ip address 192.1681.1 255.255.255.0 阅读全文
posted @ 2018-01-04 15:48 helloWorldhelloWorld 阅读(810) 评论(0) 推荐(0) 编辑
摘要:划分数据类型主要是因为:节省内存空间 (一)值类型 一:整数类型 二:实数类型 三:字符类型 四:布尔类型 布尔是逻辑值,取值只能是true or false,bool类型对应于.NET类库中的System.Boolean结构,在计算机中占到4个字节,即32位存储空间 五:结构类型 格式: stru 阅读全文
posted @ 2018-01-04 14:54 helloWorldhelloWorld 阅读(328) 评论(0) 推荐(0) 编辑
摘要:动态RIP配置路由表 以Router11为例子: (1)配置端口ip(两个端口需要设置两个ip) Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 Router(config-if)#no shu 阅读全文
posted @ 2018-01-03 21:25 helloWorldhelloWorld 阅读(670) 评论(0) 推荐(0) 编辑
摘要:动态ospf设置路由表 以Rourer1为例子 (1)首先设置路由器端口ip Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1.1 255.255.255.0 (2)启用端口Ip Router(config-if)#no shu 阅读全文
posted @ 2018-01-03 21:16 helloWorldhelloWorld 阅读(814) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示