02 2019 档案

摘要:排块游戏思路 1.代码,创建N*N个按键,采取窗体装载事件,自动生成一、创建N*N个按键二维数组二、窗体装载事件,生成N*N个按键三、生成所有按键,采取二重循环依次产生每个按键 1.设置按键Text,Top,Left,Width,Heigh,Visible,Tag属性 2.注册按键Click事件// 阅读全文

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

摘要:1 #include 2 #define N 1000 3 4 int Factorial(int n, int a[], int index); 5 int main() 6 { 7 int a[N] = {0,1},index = 1; 8 for(int n = 1; n0; i--) 13 { 14 printf... 阅读全文

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

摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Thread... 阅读全文

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

摘要:1 /* 角谷猜想 2 一个数如果是奇数 那么这个数乘以3加1 3 如果是偶数,那么这个数除以2 4 最终结果会是1 */ 5 using System; 6 class Jiaogu 7 { 8 public static void Main(string[] args) 9 { 10 for( int n=1; n<=100; n++ )... 阅读全文

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

摘要:第一种方法,使用NppExec插件 1.下载安装插件 NppExec https://nchc.dl.sourceforge.net/project/npp-plugins/NppExec/NppExec%20Plugin%20v0.6%20RC2/NppExec_06RC2_dll_x64.zip 阅读全文

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

摘要:1、安装MinGW/GCC编译器 2、配置环境变量 比如 E:\MinGW\bin; 3、安装Notepad++ 4、Notepad++中配置编译与运行命令 cmd /k g++ -o $(CURRENT_DIRECTORY)\$(NAME_PART).exe "$(FULL_CURRENT_PAT 阅读全文

posted @ 2019-02-24 00:46 金色的省略号 阅读(225) 评论(0) 推荐(0) 编辑

摘要:1 #include 2 #include 3 int lengthOfLongestSubstring(char *s) 4 { 5 int size = strlen(s);/*字符串长度*/ 6 int dict[256]; 7 for(int i=0; i start) /*一旦字符有了位置记录 说明字符出现重复*/ 14 ... 阅读全文

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

摘要:1 int lengthOfLongestSubstring(string s) 2 { 3 int size = s.size();/*字符串长度*/ 4 vector dict(256,-1);/*用来存储字符串中字符出现的位置*/ 5 int maxlen = 0;/*最大无重复字符串长度*/ 6 int start = -1;/*无重复字... 阅读全文

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

摘要:1 #include 2 using namespace std; 3 4 int main() 5 { 6 int year; 7 int monthD[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; 8 int week; 9 int forward; 10 while(cin>... 阅读全文

posted @ 2019-02-16 23:41 金色的省略号 阅读(149) 评论(0) 推荐(0) 编辑

摘要:一、Eclipse设置 (一)、代码提示(快捷键补全)设置 打开Eclipse,点击Window--Preferences--Java--Editor--ContentAssist Auto Activation 勾选Enable auto activation,Auto Activation tr 阅读全文

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

摘要:1.编辑JavaC.sublime-build文件 用winrar 打开 Sublime的安装目录下的Packages文件夹下的Java.sublime-package文件, 双击JavaC.sublime-build文件,用记事本打开,复制下面代码替换原有的代码, { "cmd": ["javac 阅读全文

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

摘要: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 金色的省略号 阅读(131) 评论(0) 推荐(0) 编辑

摘要:一、第一种方法 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 金色的省略号 阅读(251) 评论(0) 推荐(0) 编辑

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

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

摘要: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 金色的省略号 阅读(4077) 评论(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 金色的省略号 阅读(182) 评论(0) 推荐(0) 编辑

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

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

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

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

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

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

摘要: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) 编辑

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