//// main.cpp// circleQueue//// Created by zhou on 14-6-19.// Copyright (c) 2014年 zhou. All rights reserved.//#define Max 50typedef struct ...
分类:
其他好文 时间:
2014-06-28 18:54:47
阅读次数:
171
最近读了一篇关于Javascript面向对象编程的文章,里面介绍了Javascript中的类,对象,属性,方法,构造函数,继承,封装,抽象和多态性。读完之后感觉受益匪浅,对Javascript有了进一步的认识。文章的地址在这里。在讲到继承的时候,文章里面用了如下的例子// define the Pe...
分类:
编程语言 时间:
2014-06-28 18:51:34
阅读次数:
299
#ifndef COMMON_HHH#define COMMON_HHH#define ASSERT(p) \ do{\ if (!p){\ printf("%s:%d\n",__FILE__,__LINE__ );\ }\ } while (...
分类:
其他好文 时间:
2014-06-28 18:34:04
阅读次数:
293
矩阵相乘的例子 参考博客:http://blog.csdn.net/kkk584520/article/details/18812321 MatrixMultiply.c typedef int data_type; #define N 5 void MatrixMultiply(data_type...
分类:
其他好文 时间:
2014-06-28 18:02:29
阅读次数:
367
#ifndef __CCCONFIG_H__#define __CCCONFIG_H__#include "platform/CCPlatformConfig.h"/**@filecocos2d (cc) configuration file*//** @def CC_ENABLE_STACKABL...
分类:
其他好文 时间:
2014-06-28 16:27:23
阅读次数:
280
和上个题目差不多,这次是找若干个串的LCS,若干#include #define maxn 200100using namespace std;int next[maxn][26],pre[maxn],step[maxn];int f[13][maxn];int N=0,last=0,n=1;int...
分类:
其他好文 时间:
2014-06-20 18:49:21
阅读次数:
153
#include#include#include#includeusing namespace std;#define N 2100#define M 11000int t[N];int n,m;int dp[N];int ru[N],op[N];int e[N],ne[M],v[M];int nn...
分类:
其他好文 时间:
2014-06-20 18:25:47
阅读次数:
191
#ifndef _LINUX_TASKS_H#define _LINUX_TASKS_H/** This is the maximum nr of tasks - change it if you need to*///最大的进程数量#define NR_TASKS 128#endif
分类:
系统相关 时间:
2014-06-20 17:29:36
阅读次数:
290
题目描述:把只包含因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含因子7。习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。输入:输入包括一个整数N(1#define MAXSIZE 1500void mkUglyNumber();int...
分类:
其他好文 时间:
2014-06-20 16:56:31
阅读次数:
197
1 //1.C++很简单的一种办法: 2 #include 3 #include 4 using namespace std; 5 #define FILENAME "stat.dat" 6 int main() 7 { 8 fstream _file; 9 _file.o...
分类:
编程语言 时间:
2014-06-20 15:45:52
阅读次数:
327