秋林箭

每夜,携酒河上,饮且渔

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年8月13日

摘要: #include#includeusing namespace std;class node{public: char c; node*next;};node* insert(char*list,int length){ int i=0; node*first; nod... 阅读全文
posted @ 2015-08-13 23:08 zhangyee 阅读(281) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;bool sumk(int*list,int length,int*num1,int*num2,int k){ int have=false; if(list==NULL||lengthk) j--; ... 阅读全文
posted @ 2015-08-13 16:50 zhangyee 阅读(180) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;bool iswei1(int data,int wei){ int i=8*sizeof(int); data=data>>(i-wei); return(data&1);}void number1(int *list,in... 阅读全文
posted @ 2015-08-13 16:04 zhangyee 阅读(153) 评论(0) 推荐(0) 编辑

摘要: #includeusing namespace std;int weizhiq(int *list,int length,int start,int end,int k){ int weizhi=-1; if(start==end&&list[end]!=k)return -1; ... 阅读全文
posted @ 2015-08-13 15:12 zhangyee 阅读(137) 评论(0) 推荐(0) 编辑