会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
XiaoFei Wang
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
阅读(161)
评论(0)
推荐(0)
2014年7月2日
从1输出n位数字
摘要: #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
阅读(149)
评论(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
阅读(103)
评论(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
阅读(109)
评论(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
阅读(123)
评论(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
阅读(129)
评论(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
阅读(130)
评论(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
阅读(141)
评论(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
阅读(108)
评论(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
阅读(186)
评论(0)
推荐(0)
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告