上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: iostream是一个类,有自己的buffer。你每次cin>>a,它就把buffer减一,放到a中去。cin.putback(a)就是把a的内容放回buffer中。例1:读出来之后,再放回去,让别人也可以读:譬如输入了 'm '; cin> > a; cin> > b; 此时a= 'm ',b等待... 阅读全文
posted @ 2014-10-12 20:57 -琥珀川- 阅读(818) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;//插入排序 void insert_sort(int *array,int n){ for(int i=1;i<n;i++) { int k=i-1; int temp =array[i]; ... 阅读全文
posted @ 2014-10-12 16:57 -琥珀川- 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;//当前检测的行列 是否 符合条件 //从1行1列开始 bool check(int row,int col,int *list){ for(int i=1;i=1) { array[k]=array[k]+1;//检... 阅读全文
posted @ 2014-10-12 14:36 -琥珀川- 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 怎样查看本机到一个网站经过多少路由节点?一般路由节点数的多少决定了网络的稳定性,所以查询节点数能让我们及时了解到自己网络的情况。比如说我等百度没登上,我们可以通过节点数的反应请款来确定哪些节点链接超时。我们就以前百度的为例www.baidu.com操作如下在命令指示符里输入tracert www.b... 阅读全文
posted @ 2014-10-07 20:57 -琥珀川- 阅读(1753) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int BFMatch(char* s,char* p){ int i=0; int j=0; while(i<strlen(s)) { while(s[i]==p[j]&&j<strlen... 阅读全文
posted @ 2014-10-07 20:24 -琥珀川- 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 进制数相加 char* sum(int n,char* num1,char* num2)功能:第一个参数n 代表多少进制,最大就是36进制,从0到9,然后a到z代表10到35.char* num1 和char* num2 分别接受两个数字字符串,然后相加得到的结果返回#includeusing na... 阅读全文
posted @ 2014-10-07 14:39 -琥珀川- 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 写一个函数,它的原形是int continumax(char *outputstr,char *intputstr)功能:在字符串中找出连续最长的数字串,并把这个串的长度返回,并把这个最长数字串付给其中一个函数参数outputstr所指内存。例如:"abcd12345ed125ss123456789... 阅读全文
posted @ 2014-10-06 17:31 -琥珀川- 阅读(656) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int main(){ //memcpy函数 char d[20]; //声明数组 char *str="Hellow word"; memcpy(d,str,strlen(str)); d[strlen(str)]=0; //末尾添加0 表示... 阅读全文
posted @ 2014-10-06 15:11 -琥珀川- 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 这里演示关于字典树的插入删除 查找字典树的每个节点有26个子节点分别对应26个英文字母 ;每个节点还有个属性表示该节点是否为一个单词(从根节点到盖子节点)参考http://www.cnblogs.com/archimedes/p/trie-tree.html#includeusing namespa... 阅读全文
posted @ 2014-10-05 21:13 -琥珀川- 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 发现一个厉害的关于html ui的网站 http://amazeui.org以后可能会用机会用! sso beautiful! 阅读全文
posted @ 2014-10-05 19:38 -琥珀川- 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页