2019年2月10日

摘要: The Vehicle class has abstract members that must be implemented by the Car class or any other class that is inherited from the Vehicle class. The Vehi 阅读全文

posted @ 2019-02-10 15:29 金色的省略号 阅读(130) 评论(0) 推荐(0) 编辑

2019年2月9日

摘要: 一、第一种方法 1.New Build System,设置C++.sublime-build编译文件 { "path": "E:\\MinGW\\bin", "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"", " 阅读全文

posted @ 2019-02-09 11:30 金色的省略号 阅读(250) 评论(0) 推荐(0) 编辑

2019年2月8日

摘要: c# GetType()和typeof()的区别 C#中任何对象都具有GetType()方法,返回Type类型的当前对象的类型。 GetType()是基类System.Object的方法,因此只有建立一个实例之后才能够被调用。 typeof(x)中的x,必须是具体的类名、类型名称等,不可以是变量名称 阅读全文

posted @ 2019-02-08 17:10 金色的省略号 阅读(240) 评论(0) 推荐(0) 编辑

2019年2月7日

摘要: 1.重载:参数数量或者参数类型不同(overloading );2.重写:override 关键字重写父类方法,父类的方法是virtual 或 abstract修饰的, 1 using System; 2 class A 3 { 4 //虚方法 5 virtual public void sayHe 阅读全文

posted @ 2019-02-07 21:48 金色的省略号 阅读(4012) 评论(0) 推荐(0) 编辑

摘要: C# string 与 String的区别 The string type represents a string of Unicode characters. string is an alias for System.String in the .NET Framework. string is 阅读全文

posted @ 2019-02-07 15:52 金色的省略号 阅读(180) 评论(0) 推荐(0) 编辑

摘要: decimal是一个不折不扣的浮点型,不论它精度有多高,精度损失依然存在! decimal的精度比double大,但所能储存的最大数却比double要小。 decimal类型具有更高的精度和更小的范围,这使它适合于财务和货币计算。 阅读全文

posted @ 2019-02-07 09:54 金色的省略号 阅读(418) 评论(0) 推荐(0) 编辑

2019年2月6日

摘要: c# 帮助文档,chm 格式, 不可以放在含有字符 # 的文件夹下(包括当前文件夹和上级文件夹),文件名也不可以含有 # 字符, 否则会打不开。 阅读全文

posted @ 2019-02-06 19:52 金色的省略号 阅读(160) 评论(0) 推荐(0) 编辑

2019年2月3日

摘要: 委托,相当于函数指针,是引用类型,有多播功能 委托的声明 public delegate double MyDelegate ( double x ); 委托就是函数原型,起一个名字。 委托的实例化 MyDelegated d2 = new MyDelegate( obj.myMethod ); 委 阅读全文

posted @ 2019-02-03 11:12 金色的省略号 阅读(277) 评论(0) 推荐(0) 编辑

2019年2月2日

摘要: 1 using System; 2 public class PrimeFilter 3 { 4 public static void Main( string [] args ) 5 { 6 int N = 100; 7 bool [] a = new bool[N+1];//bool数组 8 9 for( i... 阅读全文

posted @ 2019-02-02 11:19 金色的省略号 阅读(121) 评论(0) 推荐(0) 编辑

2019年1月31日

摘要: 下载地址:http://www.sublimetext.com/3 1、安装完之后,tools菜单下最下一个点一下,安装Package Control 插件2、Preferences菜单下,点Package Control 点 install Package3、安装插件 SublimeREPL 、 阅读全文

posted @ 2019-01-31 16:13 金色的省略号 阅读(234) 评论(0) 推荐(0) 编辑