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

1-1 欢迎来的C++世界

2016-09-22 20:19 218 查看


1-1 欢迎来的C++世界

Time Limit: 1000MS Memory Limit: 65536KB


Problem Description

C++的输出方法
VC++开发环境,创建一个控制台应用程序,利用C++无


Output

 
13行,34个*,组成边框的形状,第三行Welcome
to ;从第五到第十一行输出的形状C++!”的图形。


Example Input




Example Output

**********************************
*                                *
*          Welcome  to           *
*                                *
*       ***               *      *
*      *   *              *      *
*      *       *     *    *      *
*      *      ***   ***   *      *
*      *       *     *    *      *
*      *   *                     *
*       ***               *      *
*                                *
**********************************




Code realization

#include <iostream>

using namespace std;

int main()
{
cout <<"**********************************"<< endl;
cout <<"*                                *"<<endl;
cout<<"*          Welcome  to           *"<<endl;
cout<<"*                                *"<<endl;
cout<<"*       ***               *      *"<<endl;
cout<<"*      *   *              *      *"<<endl;
cout<<"*      *       *     *    *      *"<<endl;
cout<<"*      *      ***   ***   *      *"<<endl;
cout<<"*      *       *     *    *      *"<<endl;
cout<<"*      *   *                     *"<<endl;
cout<<"*       ***               *      *"<<endl;
cout<<"*                                *"<<endl;
cout<<"**********************************"<<endl;
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: