微信号:cpp_coder

介绍:最专业的C/C++编程学习和程序员发展的综合平台.提供C/C++、汇编语言等、STL、MFC、QT等等学习、数据结构算法思维分析、各领域项目经验分享、资源下载、招聘和资讯的综合服务.

520表白代码集合-C版、C++版、Python般、魔性表白图版

2019-05-20 08:30 codexia

!!!纯魔性表白图,赶紧拿去表白吧!!!

本代码搜集自网络,仅供娱乐。如果觉得这里的表白代码简陋,可以自己进行改造。需要声明的是,如果拿这里的代码去表白失败,或者表白被打,本公众号不负任何责任哦。不过你可以基于本代码,再加工,加入自己的创意和心意,或许可以赢得她的芳心哦。


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

1.效果图

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

#include "stdafx.h"
#include <iostream>
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;
}

Python版表白代码实现:

1.表白效果图

2.python表白代码

print('\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(30, -30, -1)]))


C语言文艺版表白代码实现:

1.效果图就不展示了,纯文字

2.C语言代码如下:

#include <stdio.h>
void Who_is_my_real_lover_in_life(int, int);
void God_Will_Tell_Me_the_Answer();
void But_I_Will_Find_Her_By_Myself();
int main()
{
long time = 1000000; //漫长的时光
short story; //短暂的故事
volatile short life = 75;//命运多舛的几十载人生
Who_is_my_real_lover_in_life(time, life);//谁是我命中注定的爱人?
God_Will_Tell_Me_the_Answer();//上帝会告诉我答案
But_I_Will_Find_Her_By_Myself();//但是我会通过自己的努力去寻找
return 0;
}
void Who_is_my_real_lover_in_life(int time, int life)
{
printf("I am pauszled ,my life is so limited,about only %d yeads,but the time is so long.\nIn my limited life,I want to find my real lover,maybe it is a sad at the end,but I don't care!\n", life);
}
void God_Will_Tell_Me_the_Answer()
{
printf("God said:\"Each person has their own life trajectory, the trajectory of each other, in so many points of intersection, there is always a point that belongs to you, with you, will not disappear, until one day, the other side of the track because you are too far away from each other and gradually cut off contact.\"\n");
}
void But_I_Will_Find_Her_By_Myself()
{
printf("Finally,I konw the answer of where is my lover,she is in my life,I must use my heart to find,and finally,I will find her!\n");
}


当然还有很多更有趣的表白代码,后续将继续补充。欢迎大家留言。


 
CPP技术网 更多文章 程序员本不该经历这么多恶心的事 C++代码系统:cout C++代码系统:cin C++代码系统:代码注释 程序员,请不要活在自己的世界里
猜您喜欢 Redis持久化机制 程序员能靠技术渡过中年危机吗? 硅谷独角兽公司的监控系统长啥样? 阿里聚安全一周一讯 | 著名黑客Todesco 攻破iOS 9.3.4越狱成功、三星支付漏洞可导致黑客进行交易劫持 2016年最大笑话: 为什么是这两个人来选美国总统?