淘先锋技术网

首页 1 2 3 4 5 6 7

c程序怎么写表白代码?

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;

}

最炫表白墙php源码,c程序怎么写表白代码