当前位置:C++技术网 > 资讯 > 520表白代码集合-C、C++、Python、魔性图

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

更新时间:2019-05-20 00:10:43浏览次数:1+次

!!!纯魔性表白图!!!


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

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

1.效果图

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

#include <iostream>
using namespace std;
int main0()
{
    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");
}


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