| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 713 人关注过本帖
标题:对距阵进行旋转
只看楼主 加入收藏
兜兜里有枪
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-4-22
收藏
 问题点数:0 回复次数:3 
对距阵进行旋转
昨天老师布置了一道作业,叫我们用C++对一个距阵进行旋转90度,哪位高手能指教一下啊?
搜索更多相关主题的帖子: 作业 老师 指教 
2007-04-22 09:52
wfpb
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2188
专家分:0
注 册:2006-4-2
收藏
得分:0 
n*n矩阵还是m*n矩阵?

[glow=255,red,2]wfpb的部落格[/glow] 学习成为生活的重要组成部分!
2007-04-22 10:26
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分:0 
我想是m*n矩阵

Go confidently in the  directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-04-22 12:09
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分:0 
f(m,n)
{
int i,j;
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
cout<<"*";
cout<<endl;
}
for(j=0;j<n;j++)
{
for(i=0;i<m;i++)
cout<<"*";
cout<<endl;
}

Go confidently in the  directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-04-22 12:18
快速回复:对距阵进行旋转
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011336 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved