100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > c程序怎么写表白代码 – PHP基础 – 前端 织梦前台打印php

c程序怎么写表白代码 – PHP基础 – 前端 织梦前台打印php

时间:2020-04-14 14:40:53

相关推荐

c程序怎么写表白代码 – PHP基础 – 前端 织梦前台打印php

C++版控制台画出心形的代码实现:

1.C++表白代码如下:

#include "stdafx.h"

#include

using namespace std;

int main(){

int i, j;

cout << " ****** *******" << endl;

cout << " xxxlovexxx xxxlovexxx" << endl;

cout << " ************ *************" << endl;

for (i = 0; i < 3; i++)

{

for (j = 0; j < 29; j++)

cout << "*";

cout << endl;

}

for (i = 0; i < 7; i++)

{

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;

return 0;

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。