面向对象上机题-绘图

//面向对象上机题
//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;
 }
}

posted @ 2006-02-09 17:32  陕北蜂农  阅读(98)  评论(0编辑  收藏  举报