您的位置:首页 > 编程语言 > C语言/C++

本周全力备战C++二级考试

2009-09-14 12:59 232 查看
/*本周全力备战C++二级考试*/
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{int j,k;
char c='L';
cout<<"本周全力备战C++二级考试"<<endl;
cout.fill('*');
cout<<setw(23)<<""<<endl;
//cout<<endl;
for(j=0;j<=11;j++)
 {for(k=1;k<=11-j;k++)
  cout<<" ";
 for(k=0;k<j+1;k++)
  cout.put(c-11+k);
 for(k=j-1;k>=0;k--)
  cout.put(c-11+k);
 cout<<endl;
 }
cout<<"/n";
cout<<setw(23)<<""<<endl;
cout<<"Monday,September 14,2009"<<endl;
cout<<"Powered by £魔神翼♂"<<endl;
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: