会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
分享----适度设计
博客园
园子
首页
新随笔
联系
管理
订阅
2010年4月21日
C++ 螺旋队列
摘要: #include <iostream>#include <iomanip>using namespace std;void fun(int x,int y){ if (x == y) cout<<setw(3)<< 2*x+(1-2*x)*(1-2*x)<<" "; if (x == -y+1 && x > 0) cout<<setw(3)<< 1+(1-2*x)*(1-2*x)<<" "; else if (x == -y+1 &
阅读全文
posted @ 2010-04-21 16:39 好好学习,天天进步
阅读(377)
评论(0)
推荐(0)
编辑
公告