题意:求最长子序列#include#includeusing namespace std;int
max(int x,int y){ if(x>y) return x; return y;}int map[1001][1001];char
s1[1001],s2[1001];int main(){ ...
分类:
其他好文 时间:
2014-05-07 20:07:29
阅读次数:
202
#include #include #define N 100int gcd(int x,int
y){ int t; if(x<y) { t=x; x=y; y=t; } return (y==0)?x:gcd(y,x%y);...
分类:
其他好文 时间:
2014-05-07 19:29:36
阅读次数:
309
数塔问题#include#includeusing namespace std;int
a[100009][12];int maxi(int a,int b,int c){ int max1; max1=a>b?a:b;
max1=max1>c?max1:c; return ...
分类:
其他好文 时间:
2014-05-07 19:25:00
阅读次数:
302
php ZIP压缩类实例分享Zip($zipfiles, $zipfile); //添加文件列表
PHP的ZIP压缩类: GetFileList($dir);} if
((!empty($dir))&&(!is_array($dir))&&(file_exists($dir)))
chdir($d....
分类:
Web程序 时间:
2014-05-07 18:43:40
阅读次数:
556
#include using namespace std;class A{public:
int a;public: A& operator++(){ cout<<"A&
operator++()"<<endl; a=a+1; return *this; } A operator++(int){ c...
分类:
其他好文 时间:
2014-05-07 18:37:55
阅读次数:
208
1. 关于自定义函数比如定义了一个函数名为hello的函数:1 function hello{2 3
echo "Hello World!"4 5 return 16 7 }1 #调用函数2 hello3 4 #保存函数返回值5
a=$?若将函数写在单独的文件中,可以用下面的方式来调用,假设...
分类:
其他好文 时间:
2014-05-07 18:34:04
阅读次数:
328
Given an array with n objects colored red,
white or blue, sort them so that objects of the same color are adjacent, with
the colors in the order red, ...
分类:
其他好文 时间:
2014-05-07 18:01:05
阅读次数:
412
主要有:1、数组array 2、ArrayList 3、HashTable
4、泛型集合List1、Array数组的特点是存储的类型统一,长度固定。在我们一开始声明数组的时候就得确定他的长度,堆内存就要分配相应大小的内存空间。所以比较静态,不灵活。2、解决Array的缺点,出现了ArrayL...
分类:
其他好文 时间:
2014-05-07 17:37:48
阅读次数:
391
1. 试了Hide during application launch的勾选选项,不可以2.
试了Controller中用函数,还是不可以- (BOOL)prefersStatusBarHidden{ return
YES;//隐藏为YES,显示为NO}后边找到这个方法,终于可以了,Mark一...
分类:
移动开发 时间:
2014-05-07 10:12:20
阅读次数:
312
注解作用 常见的作用有以下几种:生成文档。这是最常见的,也是java
最早提供的注解。常用的有@see @param @return @author等。跟踪代码依赖性,实现替代配置文件功能。比较常见的是spring 2.5
开始的基于注解配置。作用就是减少配置。现在的框架基本都使用了这种配置来减.....
分类:
编程语言 时间:
2014-05-07 09:49:47
阅读次数:
524