天游体育彩票平台

4000-9696-28

【520表白日】程序员如何表白吗?程序员表白教程送给你!

2020年05月20日 09:24供稿中心:北大青鸟市场部

摘要: 【520表白日】程序员如何表白吗?程序员表白教程送给你!

1589937755852126.jpg

所有不曾料想过的问题,都会随着时间的推移而与你不期而遇;你所有曾经潇洒的随遇而安,同样也会随时间流逝而让你承担那些似乎命中已经注定的代价。

同学们,眼看520眼看就要到了,身为程序员的你,想没想过你的技术能够在求爱的时候用上呢?如果能用写程序的方式表白,这又何尝不是一种浪漫呢?!

这不,已经有程序员同行写出了这样的程序,如果你也是个程序员,可以从中得到启发,做出自己专属的表白程序,如果不是,也可以直接拿此程序炫耀下。

此程序是用C++语言所写。下面我们就来欣赏下程序代码及运行结果。
代码如下:
C++代码
1. #include <iostream> #include <windows.h> #include <stdio.h> using namespace std;
2.  
3. #define stoptimeshort  40  
4. #define stoptimelong   100
5.  
6. void main()  
7. {  
8.     /////////  
9.     char ch[10];  
10.    int f[9][36]={  0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,  
11.                    0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,  
12.                    0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,  
13.                    0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,  
14.                    0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,1,  
15.                    0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,  
16.                    0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,  
17.                    0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,  
18.                    0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0  
19.                 };  
20.    int s[9][21]={  0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,  
21.                    0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,  
22.                    1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,  
23.                    1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,  
24.                    0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,  
25.                    0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,  
26.                    0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,  
27.                    0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,  
28.                    0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,  
29.                 };  
30.    int t[9][22]={  0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,  
31.                    0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,  
32.                    1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,  
33.                    1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,  
34.                    0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,  
35.                    0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,  
36.                    0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,  
37.                    0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,  
38.                    0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,  
39.                 };  
40.    system ( "title I Love You" );  
41.    /////////  
42.    printf ( "%s","        " );  
43.    Sleep ( stoptimelong );  
44.    printf ( "%s","其" );  
45.    Sleep ( stoptimeshort );  
46.    printf ( "%s","实\n" );  
47.    ////////////////  
48.    printf ( "%s","        " );  
49.    system ( "color 72" );  
50.    Sleep ( stoptimelong );  
51.    printf ( "%s","有" );  
52.    Sleep ( stoptimeshort );  
53.    printf ( "%s","一" );  
54.    Sleep ( stoptimeshort );  
55.    printf ( "%s","句" );  
56.    Sleep ( stoptimeshort );  
57.    printf ( "%s","话\n" );  
58.    //////////////  
59.    printf ( "%s","        " );  
60.    system ( "color 79" );  
61.    Sleep ( stoptimelong );  
62.    printf ( "%s","一" );  
63.    Sleep ( stoptimeshort );  
64.    printf ( "%s","直" );  
65.    Sleep ( stoptimeshort );  
66.    printf ( "%s","藏" );  
67.    Sleep ( stoptimeshort );  
68.    printf ( "%s","在" );  
69.    Sleep ( stoptimeshort );  
70.    printf ( "%s","我" );  
71.    Sleep ( stoptimeshort );  
72.    printf ( "%s","心" );  
73.    Sleep ( stoptimeshort );  
74.    printf ( "%s","里\n" );  
75.    ///////////////  
76.    printf ( "%s","        " );  
77.    system ( "color 7c" );  
78.    Sleep ( stoptimelong );  
79.    printf ( "%s","可" );  
80.    Sleep ( stoptimeshort );  
81.    printf ( "%s","是\n" );  
82.    ////////////////  
83.    printf ( "%s","        " );  
84.    system ( "color 7d" );  
85.    Sleep ( stoptimelong );  
86.    printf ( "%s","我" );  
87.    Sleep ( stoptimeshort );  
88.    printf ( "%s","没" );  
89.    Sleep ( stoptimeshort );  
90.    printf ( "%s","有" );  
91.    Sleep ( stoptimeshort );  
92.    printf ( "%s","勇" );  
93.    Sleep ( stoptimeshort );  
94.    printf ( "%s","气" );  
95.    Sleep ( stoptimeshort );  
96.    printf ( "%s","对" );  
97.    Sleep ( stoptimeshort );  
98.    printf ( "%s","你" );  
99.    Sleep ( stoptimeshort );  
100.    printf ( "%s","说\n" );  
101.    ////////////////  
102.    printf ( "%s","        " );  
103.    system ( "color 7e" );  
104.    Sleep ( stoptimelong );  
105.    printf ( "%s","今" );  
106.    Sleep ( stoptimeshort );  
107.    printf ( "%s","天\n" );  
108.    ///////////////  
109.    printf ( "%s","        " );  
110.    system ( "color 7a" );  
111.    Sleep ( stoptimelong );  
112.    printf ( "%s","我" );  
113.    Sleep ( stoptimeshort );  
114.    printf ( "%s","终" );  
115.    Sleep ( stoptimeshort );  
116.    printf ( "%s","于" );  
117.    Sleep ( stoptimeshort );  
118.    printf ( "%s","鼓" );  
119.    Sleep ( stoptimeshort );  
120.    printf ( "%s","起" );  
121.    Sleep ( stoptimeshort );  
122.    printf ( "%s","勇" );  
123.    Sleep ( stoptimeshort );  
124.    printf ( "%s","气\n" );  
125.    ////////////////  
126.    printf ( "%s","        " );  
127.    system ( "color 7b" );  
128.    Sleep ( stoptimelong );  
129.    printf ( "%s","我" );  
130.    Sleep ( stoptimeshort );  
131.    printf ( "%s","要" );  
132.    Sleep ( stoptimeshort );  
133.    printf ( "%s","对" );  
134.    Sleep ( stoptimeshort );  
135.    printf ( "%s","你" );  
136.    Sleep ( stoptimeshort );  
137.    printf ( "%s","说:\n" );  
138.    ////////////////  
139.    printf ( "%s","        " );  
140.    system ( "color 79" );  
141.    Sleep ( stoptimelong );  
142.    printf ( "%s","我" );  
143.    Sleep ( stoptimeshort );  
144.    printf ( "%s","…\n" );  
145.    /////////////////  
146.    printf ( "%s","        " );  
147.    system ( "color 72" );  
148.    Sleep ( stoptimelong );  
149.    printf ( "%s","我" );  
150.    Sleep ( stoptimeshort );  
151.    printf ( "%s","…" );  
152.    Sleep ( stoptimeshort );  
153.    printf ( "%s","…\n" );  
154.    /////////////////  
155.    Sleep ( stoptimelong );  
156.    system ( "color fc" );  
157.    for ( int i=0; i<9; i++ )  
158.    {  
159.        cout<<"        ";  
160.        for ( int j=0; j<36; j++ )  
161.        {  
162.            if ( f[i][j]==0 )  
163.                cout<<" ";  
164.            else  
165.                cout<<"*";  
166.        }  
167.        cout<<endl;  
168.        Sleep ( 100 );  
169.    }  
170.    ///////////////////  
171.line:  
172.    printf ( "%s","        " );  
173.    Sleep ( stoptimelong );  
174.    printf ( "%s","你" );  
175.    Sleep ( stoptimeshort );  
176.    printf ( "%s","愿" );  
177.    Sleep ( stoptimeshort );  
178.    printf ( "%s","意" );  
179.    Sleep ( stoptimeshort );  
180.    printf ( "%s","接" );  
181.    Sleep ( stoptimeshort );  
182.    printf ( "%s","受" );  
183.    Sleep ( stoptimeshort );  
184.    printf ( "%s","我" );  
185.    Sleep ( stoptimeshort );  
186.    printf ( "%s","吗" );  
187.    Sleep ( stoptimeshort );  
188.    printf ( "%s","?(Y/N)" );  
189.    //////////////////  
190.    cout<<endl;  
191.    cout<<"        ";  
192.    cin>>ch;  
193.    Sleep ( stoptimelong );  
194.    if ( ch[0]=='y'||ch[0]=='Y' )  
195.    {  
196.        system ( "color fc" );  
197.        for ( int i=0; i<9; i++ )  
198.        {  
199.            cout<<"        ";  
200.            for ( int j=0; j<21; j++ )  
201.            {  
202.                if ( s[i][j]==0 )  
203.                    cout<<" ";  
204.                else  
205.                    cout<<"*";  
206.            }  
207.            cout<<endl;  
208.            Sleep ( 100 );  
209.        }  
210.        Sleep ( 3000 );  
211.    }  
212.    else  
213.    {  
214.        if ( ch[0]=='n'||ch[0]=='N' )  
215.        {  
216.            system ( "color 0f" );  
217.            for ( int i=0; i<9; i++ )  
218.            {  
219.                cout<<"        ";  
220.                for ( int j=0; j<22; j++ )  
221.                {  
222.                    if ( t[i][j]==0 )  
223.                        cout<<" ";  
224.                    else  
225.                        cout<<"*";  
226.                }  
227.                cout<<endl;  
228.                Sleep ( 100 );  
229.            }  
230.            printf ( "%s","        " );  
231.            Sleep ( stoptimelong );  
232.            printf ( "%s","心" );  
233.            Sleep ( stoptimeshort );  
234.            printf ( "%s","碎" );  
235.            Sleep ( stoptimeshort );  
236.            printf ( "%s","了" );  
237.            Sleep ( stoptimeshort );  
238.            printf ( "%s","……\n" );  
239.        }  
240.        else  
241.            goto line;  
242.    }  
243.    system ( "color 0f" );  
244.    system ( "pause" );  
245.}  
运行效果截图:



      怎么样?还是很有意思的吧?这才是与众不同的表白方式啊!应该会增加成功几率哦!
      好了,同学们,轻松愉悦的事情讲完了,接下来给大家带来一些实际的内容,良心出品,绝对干货,之前的一篇文章"一篇文章,让你爱情与编程比翼双飞"给大家讲了我总结提炼的恋爱三部曲,有不少同学找我来咨询到底如何维护好长期关系,说在上一篇文章里没有讲清楚,今晚就和大家好好聊一聊这个话题,把我总结的如果维护好长期关系的七个要点给大家讲一讲。
1, 不要把恋爱当成你生活的全部。更不要把对方当成全世界。你还有工作,朋友,梦想,一大堆未完成的计划。当初她或他也是因为这些特质选择和你在一起的。
2,沟通可以解决恋爱中90%以上的问题,那么剩下的10%就是各自的秘密,打死都不能说的,所以请收起你的好奇心,这很重要。尊重比打着”我为你好“的旗号获取对方隐私更可爱。
3,每个人都有不可逾越的底线,每个人忍耐都是有限度的,每个人都是有脾气的,所以不要再公开场合互相拆台,恩爱可以在外面秀,但是有情绪回家吵。
4,不要放弃浪漫,记住每个属于你们的特殊纪念日,哪怕是一句简单的问候,生日快乐,都倍感欣慰。
5,吵架很正常,但是,无休止的因为同一个问题吵架,很悲催。恋爱是一场求同存异,共同成长的旅程,达尔文的进化定律是优胜劣汰,恋爱也是如此,没有那一场恋爱是一劳永逸的。
6,恋爱的本质一定是基于价值平衡的,就像是跷跷板游戏,不能是一个高高在上,一个卑微到尘埃里,永远记住时刻提升自己的方方面面,哪怕同学们你们已经谈了很长时间的恋爱了。
7,那些没有未来的人,忍痛都要割掉,你的坚持只是别人厌恶的理由。分手是没有理由的,一切的理由都是不爱的借口。
同学们,今晚就到这了,最后送大家一句话:变成更好的样子,才是送给你喜欢的人和喜欢你的人的最好礼物,所以先好好经营自己吧。

文章来源:烟台课工场

关于我们
公司简介
发展历程
青鸟荣誉
联系我们
加入我们
青鸟课程
ACCP
学士后Java
BENET
启蒙星IT工程师基础课程
学习客户端下载
青鸟优师
青鸟微讯
回顶部 新版反馈 回到首页
官方新版意见收集

*

官方新版意见收集

提交成功,感谢您的反馈。

我们会认真阅读和考虑每个用户的反馈。

友情链接:pk10赛车  一分快3彩票  幸运时时彩官网  幸运飞艇网址登录  618彩票平台  秒速时时彩  at彩票官网  410彩票官网  网投彩票  pc28官网