//面向对象上机题
//Date:2005/10/27
#include "iomanip.h"
void main()
{
int Map[8]={1,3,5,7,5,3,1};
int N[8]={11,9,7,5,7,9,11};
for(int y=0;y<7;y++)
{
cout<<setw(N[y]);
for(int i=0;i<Map[y];i++)
cout<<"*"<<" ";
cout<<endl;
}
}
//面向对象上机题
//Date:2005/10/27
#include "iomanip.h"
void main()
{
int Map[8]={1,3,5,7,5,3,1};
int N[8]={11,9,7,5,7,9,11};
for(int y=0;y<7;y++)
{
cout<<setw(N[y]);
for(int i=0;i<Map[y];i++)
cout<<"*"<<" ";
cout<<endl;
}
}
162
1472

被折叠的 条评论
为什么被折叠?