上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 73 下一页
摘要: 在我们编程中用的最多是函数,也就是如何函数调用。那我们如何调用函数呢?一:我们必须要知道函数的功能是什么?二:再看这个函数需要哪些参数?三:最后看返回值是什么?当我们面对一个函数时,既不知道函数的功能也不参数以及返回值时,我们该如何下手呢?必须得动手查询呗,可以使用函数手册,终端,以及书本资料等、现... 阅读全文
posted @ 2013-04-21 21:37 小尼人00 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 感 : 经典的倒水问题,个人很喜欢的一道 bfs. 另外 : 今天知识 地址作为参数只能用指针来接收!否则编译错误。代码 : 为没有记录路径的 STL queue 的实现! 记录路径可以用 dfs , 状态中记录上一个节点地址,但是需要静态开辟状态,间接说明此时不能用 STL的queue记录了。#... 阅读全文
posted @ 2013-04-21 16:49 小尼人00 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 百度-熟悉Linux(类Unix)操作系统,熟悉TCP/IP协议 -精通或熟练掌握Linux环境下的C/C++/PERL/PYTHON/SHELL等1至2种语言,对计算机体系结构有一定理解 -具备很强的分析和解决问题的能力,对于攻关疑难问题具有强烈的兴趣 -善于学习新的知识,善于思考,勤于动手,不怕... 阅读全文
posted @ 2013-04-21 16:12 小尼人00 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;const int N = 205;bool map[N][N];int mat[N];bool vis[N];int n, m;bool dfs(int u) { for(int i = 1; i ... 阅读全文
posted @ 2013-04-15 20:07 小尼人00 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;class String { // 一切都是深拷贝!private : char *m_data;public : String(const char *str = NULL); String(const String&);... 阅读全文
posted @ 2013-04-12 12:27 小尼人00 阅读(339) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class HeapOnly {public : HeapOnly() {} void destroy() const { delete this; }private : ~HeapOnly() {}};class HeapStack {p... 阅读全文
posted @ 2013-04-12 10:30 小尼人00 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 为了避免每个使用指针的类自己去控制引用计数,可以用一个类把指针封装起来。这个类对象可以出现在用户类使用指针的任何地方。#include #include #include using namespace std;template class Handle {private : T *ptr; siz... 阅读全文
posted @ 2013-04-11 15:32 小尼人00 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 单源最短路#include #include #include #include #include using namespace std;const int N = 1005;#define INF 0x7fffffffint data[N][N];int lowc[N];bool vis[N];... 阅读全文
posted @ 2013-04-10 16:58 小尼人00 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;const int N = 1010;int dp[N][N];char a[N], b[N];int n, m;int get_min(int x, int y, int z) { re... 阅读全文
posted @ 2013-04-10 11:09 小尼人00 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;#define mid(x,y) ((x&y) + ((x^y)>>1))const int N = 500005;long long a[N];long long ans; // 记录逆序对个数void merge_sor... 阅读全文
posted @ 2013-04-09 16:40 小尼人00 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 73 下一页