//clock()函数为c中,捕捉从程序开始运行到clock运行的时间//时间单位为clock tick,即为时钟打点#include#include#include//包含头文件(C中的写法)using namespace std;clock_t start, stop; //clock_t是cl...
分类:
编程语言 时间:
2015-03-01 11:42:53
阅读次数:
151
1 class Solution { 2 public: 3 string addBinary(string a, string b) { 4 int aL = a.length(); 5 int bL = b.length(); 6 int cL; 7 ...
分类:
其他好文 时间:
2015-02-28 20:15:57
阅读次数:
103
未来还有进一步提升的空间,测试结果只能说明部分问题1.原始结果Correctly Classified Instances 762 76.2%Incorrectly Classified Instances 238 23.8% a b c d e f g h i j <-- cl...
分类:
其他好文 时间:
2015-02-28 18:14:01
阅读次数:
134
1 #include 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d",&(x)) 6 #define pf(x) printf("%d\n", x) 7 #define CL(x, y) memset(x...
分类:
其他好文 时间:
2015-02-28 16:19:35
阅读次数:
256
1 #include 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d",&(x)) 6 #define pf(x) printf("%d\n", x) 7 #define CL(x, y) memset(x...
分类:
其他好文 时间:
2015-02-28 15:59:59
阅读次数:
97
1 #include 2 #include 3 #include 4 #include 5 #define sc(x) scanf("%d",&(x)) 6 #define pf(x) printf("%d\n", x) 7 #define CL(x, y) memset(x, y, si...
分类:
其他好文 时间:
2015-02-27 21:26:08
阅读次数:
145
1 #include 2 #include 3 #include 4 #include 5 #define pf(x) printf("%d\n", x) 6 #define CL(x, y) memset(x, y, sizeof(x)) 7 #define max(a, b) (a >...
分类:
其他好文 时间:
2015-02-25 15:25:46
阅读次数:
147
反射机制:JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法;对于任意一个对象,都能够调用它的任意一个方法;这种动态获取的信息以及动态调用对象的方法的功能称为java语言的反射机制。
换一种引出反射的说法是:当通过反射与一个未知的类型的对象打交道是,JVM只是简单地检查这个类,看它是属于哪个特定的类(就想RTTI那样)。在用它做其他事情之前必须先加载那个类的Cl...
分类:
编程语言 时间:
2015-02-24 22:15:37
阅读次数:
182
缘起,我的vs 2003无法新建工程,又不喜欢用vs 2013那样的重量级开发工具(就写两行代码,测试测试一些基本的语法规则或算法)。想来vs应该可以像GCC或G++那样直接用命令行编译Cpp文件,那样就省得我那么麻烦了。我的步骤是这样的:1.打开Visual Studio .NET 2003 命令...
分类:
其他好文 时间:
2015-02-18 16:23:43
阅读次数:
244
father:after{ content:"."; height:0; visibility:hidden; display:block; clear:both; }清除"闭合(清除)浮动"的方法,主要是一下四种:1. 额外标签法这种方法就是向父容器的末尾再插入一个额外的标签,并令其清除浮动(cl...
分类:
其他好文 时间:
2015-02-16 11:29:09
阅读次数:
148