上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 73 下一页
摘要: #include #include #include #include #include using namespace std;const int N = 100005;int a[N];int dp[N];int n;int mmax;void solve() { memset(dp, 0, s... 阅读全文
posted @ 2013-04-09 15:24 小尼人00 阅读(252) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std;const int N = 505;char s1[N], s2[N];int dp[N][N];void solve() { int len1 = strlen(s1+... 阅读全文
posted @ 2013-04-09 14:34 小尼人00 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;int a[2][3] = {{100, 200, 300}, {400, 500, 600}};int b[3][2] = {{1, 2}, {3, 4}, {5, 6}};int c[... 阅读全文
posted @ 2013-04-09 13:30 小尼人00 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std;class L {public : static L* instance() { if(!pi) { pi = new L(); } return pi; } ... 阅读全文
posted @ 2013-04-09 12:19 小尼人00 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;const int N = 1000005;const int M = 10005; int s[N], t[M];int next[M];void get_next(int len) { int i = 0, j =... 阅读全文
posted @ 2013-04-08 16:13 小尼人00 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 工作性质的原因,公司配备了华为EC321 CDMA无线网卡,PCMCIA接口。Windows环境下安装好驱动然后通过华为自带的软件可以拨号上网。Linux下面能不能使用这块网卡呢,答案是肯定的。linux内核中已经包含了很多标准CDMA无线网卡芯片的驱动,只要你使用的CDMA卡是兼容的标准芯片那么在... 阅读全文
posted @ 2013-04-07 10:59 小尼人00 阅读(341) 评论(0) 推荐(0) 编辑
摘要: C++和其它语言的不同之处在于,其它的语言通过网上的一些教程也许就可以掌握,而C++则基本不可能,必须得深入地研究大量经典的书籍。究其原因,在于C++的庞大和繁杂。因此市面上也难免会有一些书滥竽充数,抛开一些差的代码风格,这些书里面有很多的语言层面上的错误,而对于网络教程更是如此(事实上,也很难在网... 阅读全文
posted @ 2013-04-02 12:33 小尼人00 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 上一篇文章简单讨论了一下对象的成员函数抛出异常时的处理情况。本文中将继续讨论当在构造函数中抛出异常时,程序的执行情况又如何?这有点复杂呀!而且主人公阿愚还觉得这蛮有点意思!http://se.csai.cn/ExpertEyes/200801031103481314.htm 构造函数中抛出的异常 ... 阅读全文
posted @ 2013-03-31 11:33 小尼人00 阅读(165) 评论(0) 推荐(0) 编辑
摘要: fork()setsid(); /* become session leader */chdir(oj_home); /* change working directory */umask(0); /* clear file mode creation... 阅读全文
posted @ 2013-03-29 21:06 小尼人00 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include /* fork(), read函数、write函数和getpid函数*/#include /*int syslog(int priority, string message);... 阅读全文
posted @ 2013-03-29 21:04 小尼人00 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 73 下一页