04 2013 档案

摘要:一、前言git add命令主要用于把我们要提交的文件的信息添加到索引库中。当我们使用git commit时,git将依据索引库中的内容来进行文件的提交。二、基本git add表示 add to index only files created or modified and not those de... 阅读全文
posted @ 2013-04-29 11:45 小尼人00 阅读(280) 评论(0) 推荐(0) 编辑
摘要:$ git push ssh://git@dev.lemote.com/rt4ls.git master // 把本地仓库提交到远程仓库的master分支中$ git remote add origin ssh://git@dev.lemote.com/rt4ls.git$ git push ori... 阅读全文
posted @ 2013-04-27 18:39 小尼人00 阅读(243) 评论(0) 推荐(0) 编辑
摘要:所谓的记忆话搜索,这还不是用了数组来存储么!#include #include using namespace std;#define BUG puts("here");const int N = 15;int fib[15];void init() { fib[0] = 1; fib[1] = 1... 阅读全文
posted @ 2013-04-22 22:18 小尼人00 阅读(179) 评论(0) 推荐(0) 编辑
摘要:在我们编程中用的最多是函数,也就是如何函数调用。那我们如何调用函数呢?一:我们必须要知道函数的功能是什么?二:再看这个函数需要哪些参数?三:最后看返回值是什么?当我们面对一个函数时,既不知道函数的功能也不参数以及返回值时,我们该如何下手呢?必须得动手查询呗,可以使用函数手册,终端,以及书本资料等、现... 阅读全文
posted @ 2013-04-21 21:37 小尼人00 阅读(672) 评论(0) 推荐(0) 编辑
摘要:感 : 经典的倒水问题,个人很喜欢的一道 bfs. 另外 : 今天知识 地址作为参数只能用指针来接收!否则编译错误。代码 : 为没有记录路径的 STL queue 的实现! 记录路径可以用 dfs , 状态中记录上一个节点地址,但是需要静态开辟状态,间接说明此时不能用 STL的queue记录了。#... 阅读全文
posted @ 2013-04-21 16:49 小尼人00 阅读(207) 评论(0) 推荐(0) 编辑
摘要:百度-熟悉Linux(类Unix)操作系统,熟悉TCP/IP协议 -精通或熟练掌握Linux环境下的C/C++/PERL/PYTHON/SHELL等1至2种语言,对计算机体系结构有一定理解 -具备很强的分析和解决问题的能力,对于攻关疑难问题具有强烈的兴趣 -善于学习新的知识,善于思考,勤于动手,不怕... 阅读全文
posted @ 2013-04-21 16:12 小尼人00 阅读(181) 评论(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 阅读(121) 评论(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 阅读(348) 评论(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 阅读(159) 评论(0) 推荐(0) 编辑
摘要:为了避免每个使用指针的类自己去控制引用计数,可以用一个类把指针封装起来。这个类对象可以出现在用户类使用指针的任何地方。#include #include #include using namespace std;template class Handle {private : T *ptr; siz... 阅读全文
posted @ 2013-04-11 15:32 小尼人00 阅读(140) 评论(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 阅读(126) 评论(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 阅读(134) 评论(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 阅读(127) 评论(0) 推荐(0) 编辑
摘要:#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 阅读(254) 评论(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 阅读(175) 评论(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 阅读(159) 评论(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 阅读(140) 评论(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 阅读(146) 评论(0) 推荐(0) 编辑
摘要:工作性质的原因,公司配备了华为EC321 CDMA无线网卡,PCMCIA接口。Windows环境下安装好驱动然后通过华为自带的软件可以拨号上网。Linux下面能不能使用这块网卡呢,答案是肯定的。linux内核中已经包含了很多标准CDMA无线网卡芯片的驱动,只要你使用的CDMA卡是兼容的标准芯片那么在... 阅读全文
posted @ 2013-04-07 10:59 小尼人00 阅读(351) 评论(0) 推荐(0) 编辑
摘要:C++和其它语言的不同之处在于,其它的语言通过网上的一些教程也许就可以掌握,而C++则基本不可能,必须得深入地研究大量经典的书籍。究其原因,在于C++的庞大和繁杂。因此市面上也难免会有一些书滥竽充数,抛开一些差的代码风格,这些书里面有很多的语言层面上的错误,而对于网络教程更是如此(事实上,也很难在网... 阅读全文
posted @ 2013-04-02 12:33 小尼人00 阅读(333) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示