C++表白代码

哈哈,刚刚逛博客看到了一篇大佬写的表白源码:

C++表白程序_一笑倾城MLR的博客-CSDN博客_c++表白#include <iostream>using namespace std; //调用基本输入输出库int main(){    int i, j;    cout << "      *******    *******" << endl<<"   ***********  **********"<<endl&https://blog.csdn.net/qq_40396189/article/details/84631185?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163145553316780264021946%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=163145553316780264021946&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~baidu_landing_v2~default-1-84631185.first_rank_v2_pc_rank_v29&utm_term=C%2B%2B%E8%A1%A8%E7%99%BD%E7%A8%8B%E5%BA%8F&spm=1018.2226.3001.4187上代码:

#include <iostream>
using namespace std; //调用基本输入输出库
int main()
{
	int i, j;
	cout << "      *******    *******" << endl << "   ***********  **********" << endl << " ************* *************" << endl;
	//前三排的规律性不强 直接显示
	for (i = 0; i < 3; i++)//显示中间三排
	{
		for (j = 0; j < 29; j++)
			cout << "*";
		cout << endl;
	}
	for (i = 0; i < 7; i++)//显示呈递减趋势规律的中间7排
	{
		for (j = 0; j < 2 * (i + 1) - 1; j++)
			cout << " ";
		for (j = 0; j < 27 - i * 4; j++)
			cout << "*";
		cout << endl;
	}
	for (i = 0; i < 14; i++)//最后一个星号*与上面的规律脱节了 所以独立显示
		cout << " ";
	cout << "*";
	cout << endl;
	for (j = 0; j < 2; j++)
		cout << "101.10.0.01.11.01.100.";
	cout << endl;
	for (j = 0; j < 2; j++)
	{
		cout << "1                                         0" << endl;
	}

	cout << "1              我爱你一生一世             0" << endl;
	for (j = 0; j < 2; j++)
	{
		cout << "1                                         0" << endl;
	}


	cout << "0              5201314                    1" << endl;
	for (j = 0; j < 2; j++)
	{
		cout << "1                                         0" << endl;
	}


	cout << "1              101.10.0.01.11.01.100      0" << endl;

	for (j = 0; j < 2; j++)
	{
		cout << "1                                         0" << endl;
	}
	for (j = 0; j < 2; j++)
		cout << "101.10.0.01.11.01.100.";
	for (j = 0; j < 4; j++)
		cout << endl;
	return 0;
}

附上运行截图:

 

  • 21
    点赞
  • 102
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值