2014年7月3日

摘要: #include #include using namespace std;void CirPrint( int *number,int n,int m){ if(number==NULL) return; int start=0; int cout=0; while(cou... 阅读全文
posted @ 2014-07-03 13:13 XiaoFei Wang 阅读(138) 评论(0) 推荐(0) 编辑

2014年7月2日

摘要: #include #include using namespace std;int IsEnd(int *number,int len){ if(number==NULL || len=0;i--) { int one=number[i]+jinwei; n... 阅读全文
posted @ 2014-07-02 22:17 XiaoFei Wang 阅读(140) 评论(0) 推荐(0) 编辑

2014年6月23日

摘要: #include #include using namespace std;bool equalzero(double a,double b){ if((a-b-0.0000001)) return true; else return false;}doub... 阅读全文
posted @ 2014-06-23 12:23 XiaoFei Wang 阅读(99) 评论(0) 推荐(0) 编辑

2014年6月22日

摘要: #include #include using namespace std;int inorder(int a[],int index1, int index2){ int mini=index1; for(int i = index1 + 1;i a[i]) a[... 阅读全文
posted @ 2014-06-22 13:38 XiaoFei Wang 阅读(102) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;stack stack1;stack stack2;void appendTail(int ele){ stack1.push(ele);}int deleteHead(){ int head;... 阅读全文
posted @ 2014-06-22 12:11 XiaoFei Wang 阅读(119) 评论(0) 推荐(0) 编辑

2014年6月21日

摘要: #include#includeusing namespace std;int K,N,M;int pre[1010],in[1010],post[1010],map[1010];bool canRebuild;void reBuild(int low,int up){ if(up>=lo... 阅读全文
posted @ 2014-06-21 16:25 XiaoFei Wang 阅读(123) 评论(0) 推荐(0) 编辑

2014年6月20日

摘要: #include #include #include using namespace std;struct ListNode{ int m_value; ListNode *m_pNext;};void PrintList(ListNode *pHead);int main(){ ... 阅读全文
posted @ 2014-06-20 21:53 XiaoFei Wang 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;void replaceBlank(char str[],int length);int main(){ char ch[20]; gets(ch); int len=strlen(ch)... 阅读全文
posted @ 2014-06-20 20:49 XiaoFei Wang 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;bool findnum(int *numbers,int cols,int rows,int number);int main(){ int n=5; int a[5][5]; for(int i=0;i... 阅读全文
posted @ 2014-06-20 19:39 XiaoFei Wang 阅读(98) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int IsPairFive(int *number,int length){ if(number==NULL||length1&&number[i]>0)return 0; } int k=1; w... 阅读全文
posted @ 2014-06-20 19:02 XiaoFei Wang 阅读(182) 评论(0) 推荐(0) 编辑

导航