📄 b_10_1.cpp
字号:
#include "stdafx.h"
#include <iostream>
#include <string>
#include<iomanip>
using namespace std;
void main()
{ for (int i = 7;i>1;i--)
cout<<setfill(' ')<<setw(i) << ' ' << setfill('*')
<<setw(15-2*i) << '*'<<endl;
for ( i = 1;i<8;i++)
cout<<setfill(' ')<<setw(i) << ' ' << setfill('*')
<<setw(15-2*i) << '*'<<endl;
cin.get(); //等待结束,以便调测程序,可以删除
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -