当前位置: 首页 > 编程日记 > 正文

IT男专用表白程序

[c++]代码库

001#include<iostream.h>
002#include<windows.h>
003#include<stdio.h>
004#define stoptimeshort 40
005#define stoptimelong 100
006void main()
007{
008//
009char ch[10];
010int 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,
0110,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,
0120,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,
0130,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,
0140,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,
0150,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,
0160,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,
0170,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,
0180,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
019};
020int s[9][21]={ 0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,
0210,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,
0221,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,
0231,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,
0240,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,
0250,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,
0260,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,
0270,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,
0280,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,
029};
030int 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,
0310,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,
0321,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,
0331,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,
0340,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,
0350,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,
0360,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,
0370,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,
0380,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,
039};
040system ( "title I Love You" );
041//
042printf ( "%s"," " );
043Sleep ( stoptimelong );
044printf ( "%s","其" );
045Sleep ( stoptimeshort );
046printf ( "%s","实\n" );
047
048printf ( "%s"," " );
049system ( "color 72" );
050Sleep ( stoptimelong );
051printf ( "%s","有" );
052Sleep ( stoptimeshort );
053printf ( "%s","一" );
054Sleep ( stoptimeshort );
055printf ( "%s","句" );
056Sleep ( stoptimeshort );
057printf ( "%s","话\n" );
058///
059printf ( "%s"," " );
060system ( "color 79" );
061Sleep ( stoptimelong );
062printf ( "%s","一" );
063Sleep ( stoptimeshort );
064printf ( "%s","直" );
065Sleep ( stoptimeshort );
066printf ( "%s","藏" );
067Sleep ( stoptimeshort );
068printf ( "%s","在" );
069Sleep ( stoptimeshort );
070printf ( "%s","我" );
071Sleep ( stoptimeshort );
072printf ( "%s","心" );
073Sleep ( stoptimeshort );
074printf ( "%s","里\n" );
075/
076printf ( "%s"," " );
077system ( "color 7c" );
078Sleep ( stoptimelong );
079printf ( "%s","可" );
080Sleep ( stoptimeshort );
081printf ( "%s","是\n" );
082///
083printf ( "%s"," " );
084system ( "color 7d" );
085Sleep ( stoptimelong );
086printf ( "%s","我" );
087Sleep ( stoptimeshort );
088printf ( "%s","没" );
089Sleep ( stoptimeshort );
090printf ( "%s","有" );
091Sleep ( stoptimeshort );
092printf ( "%s","勇" );
093Sleep ( stoptimeshort );
094printf ( "%s","气" );
095Sleep ( stoptimeshort );
096printf ( "%s","对" );
097Sleep ( stoptimeshort );
098printf ( "%s","你" );
099Sleep ( stoptimeshort );
100printf ( "%s","说\n" );
101///
102printf ( "%s"," " );
103system ( "color 7e" );
104Sleep ( stoptimelong );
105printf ( "%s","今" );
106Sleep ( stoptimeshort );
107printf ( "%s","天\n" );
108//
109printf ( "%s"," " );
110system ( "color 7a" );
111Sleep ( stoptimelong );
112printf ( "%s","我" );
113Sleep ( stoptimeshort );
114printf ( "%s","终" );
115Sleep ( stoptimeshort );
116printf ( "%s","于" );
117Sleep ( stoptimeshort );
118printf ( "%s","鼓" );
119Sleep ( stoptimeshort );
120printf ( "%s","起" );
121Sleep ( stoptimeshort );
122printf ( "%s","勇" );
123Sleep ( stoptimeshort );
124printf ( "%s","气\n" );
125///
126printf ( "%s"," " );
127system ( "color 7b" );
128Sleep ( stoptimelong );
129printf ( "%s","我" );
130Sleep ( stoptimeshort );
131printf ( "%s","要" );
132Sleep ( stoptimeshort );
133printf ( "%s","对" );
134Sleep ( stoptimeshort );
135printf ( "%s","你" );
136Sleep ( stoptimeshort );
137printf ( "%s","说:\n" );
138///
139printf ( "%s"," " );
140system ( "color 79" );
141Sleep ( stoptimelong );
142printf ( "%s","我" );
143Sleep ( stoptimeshort );
144printf ( "%s","…\n" );
145/
146printf ( "%s"," " );
147system ( "color 72" );
148Sleep ( stoptimelong );
149printf ( "%s","我" );
150Sleep ( stoptimeshort );
151printf ( "%s","…" );
152Sleep ( stoptimeshort );
153printf ( "%s","…\n" );
154//
155Sleep ( stoptimelong );
156system ( "color fc" );
157for ( int i=0; i<9; i++ )
158{
159cout<<" ";
160for ( int j=0; j<36; j++ )
161{
162if ( f[i][j]==0 )
163cout<<" ";
164else
165cout<<"*";
166}
167cout<<endl;
168Sleep ( 100 );
169}
170/
171line:
172printf ( "%s"," " );
173Sleep ( stoptimelong );
174printf ( "%s","你" );
175Sleep ( stoptimeshort );
176printf ( "%s","愿" );
177Sleep ( stoptimeshort );
178printf ( "%s","意" );
179Sleep ( stoptimeshort );
180printf ( "%s","接" );
181Sleep ( stoptimeshort );
182printf ( "%s","受" );
183Sleep ( stoptimeshort );
184printf ( "%s","我" );
185Sleep ( stoptimeshort );
186printf ( "%s","吗" );
187Sleep ( stoptimeshort );
188printf ( "%s","?(Y/N)" );
189
190cout<<endl;
191cout<<" ";
192cin>>ch;
193Sleep ( stoptimelong );
194if ( ch[0]=='y'||ch[0]=='Y' )
195{
196system ( "color fc" );
197for ( int i=0; i<9; i++ )
198{
199cout<<" ";
200for ( int j=0; j<21; j++ )
201{
202if ( s[i][j]==0 )
203cout<<" ";
204else
205cout<<"*";
206}
207cout<<endl;
208Sleep ( 100 );
209}
210Sleep ( 3000 );
211}
212else
213{
214if ( ch[0]=='n'||ch[0]=='N' )
215{
216system ( "color 0f" );
217for ( int i=0; i<9; i++ )
218{
219cout<<" ";
220for ( int j=0; j<22; j++ )
221{
222if ( t[i][j]==0 )
223cout<<" ";
224else
225cout<<"*";
226}
227cout<<endl;
228Sleep ( 100 );
229}
230printf ( "%s"," " );
231Sleep ( stoptimelong );
232printf ( "%s","心" );
233Sleep ( stoptimeshort );
234printf ( "%s","碎" );
235Sleep ( stoptimeshort );
236printf ( "%s","了" );
237Sleep ( stoptimeshort );
238printf ( "%s","……\n" );
239}
240else
241goto line;
242}
243system ( "color 0f" );
244system ( "pause" );
245}

[代码运行效果截图]


IT男专用表白程序

转载于:https://www.cnblogs.com/yangkai-cn/archive/2012/11/17/4017351.html

相关文章:

zabbix 安装_zabbix系列(五) Grafana4.6.3+Zabbix 的安装部署

使用了一段时间Grafana&#xff0c;感觉还挺好用的。部分效果图如下&#xff1a;​zabbix的安装步骤请参考以下地址&#xff0c;就不再描述&#xff0c;本章主要记录Grafana的部署https://blog.csdn.net/wu2700222/article/details/80520085grafana官网地址&#xff1a;http://…

ubuntu 默认鼠标双击问题

ubuntu 默认鼠标双击问题 内容&#xff1a; 选择 universalAccess ->Typing ubuntu 16.04 ubuntu 18.04 关闭鼠标悬停 点击 点击测试

石家庄的联通破网络,请大家鉴定

C:\Users\workman>pathping www.baidu.com 通过最多 30 个跃点跟踪到 www.a.shifen.com [61.135.169.125] 的路由: 0 workman-PC [192.168.0.100] 1 bogon [192.168.0.1] 2 110.240.90.1 3 221.192.14.166 4 221.192.12.85 5 61.182.172.137 6 218.12.255.210 7 202.99.160.…

Chapter 8(查找)

1.二分查找和插值查找//************************Search.h*********************************** #ifndef SEARCH_H #define SEARCH_H#include <stdio.h> #include <stdlib.h>int BiSearch(int array[],int n,int key);int IVSearch(int array[],int n,int key);int…

HDU 3549 Flow Problem(最大流模版EK算法)

题目链接 第一道最大流&#xff0c;赤裸裸的模版题&#xff0c;刚好可以熟悉模版用。今天看了一下最大流&#xff0c;就看了一个EK算法&#xff0c;感觉有点和二分图匹配算法有点相似&#xff0c;对于最大流问题有点了解了&#xff0c;不过为什么这么做&#xff0c;也不是 很懂…

html css 显示数值_【CSS纯技术】20.03.05-CSS渲染的原理

今天学的东西信息量都很大&#xff0c;导致我总是要反复观看。因为自己还没理解透&#xff0c;所以这一篇也不再追求大家能够看懂&#xff0c;只是用于帮助自己梳理头绪。一、CSS如何计算数值&#xff1f;在写CSS的过程中&#xff0c;我们会用px、em、rem、vh、vw、%等各种单位…

# Ubuntu 配置自带vnc桌面共享

Ubuntu 配置自带桌面共享 1、在setting>>shareing>>remote 选择on 如果用ubunutu直接远程连接的话已经可以了&#xff0c; 2、在ubuntu下使用系统自带的remmina连接 vnc类型 直接输入ip地址 3、如果在windows下面连接的话需要把加密选项关闭 内容&#xff1a;…

select刷新后保存原先选择的信息

前提是之前选择的信息进了后台。 在页面上放一个<s:hidden name"xxx" id"inputF"/>&#xff0c;用它来存select上次选择的值。由于信息已经存在了后台&#xff0c;这个hidden域不管怎么刷新&#xff0c;都会有值。 // s_list是要恢复取值的select va…

python命令行参数解析OptionParser类用法实例

python命令行参数解析OptionParser类用法实例 本文实例讲述了python命令行参数解析OptionParser类的用法&#xff0c;分享给大家供大家参考。 具体代码如下&#xff1a; from optparse import OptionParser parser OptionParser(usage"usage:%prog [optinos] fil…

Linux下程序崩溃dump时的 core文件的使用方法

Linux下程序崩溃dump时的 core文件的使用方法 1、在启动程序前执行 ulimit -c unlimitedunlimited 表示生成文件的大小限制&#xff0c;也可以修改为自定义的大小&#xff0c;例如&#xff1a; ulimit -c 1024对 core 文件的大小进行限制&#xff0c;单位为 blocks &#xf…

div 自动换行_js自动打字--autotypejs

autotypejsuse for typing automatically.介绍使用原生JavaScript&#xff08;es6&#xff09;实现的自动打字效果。效果图示例代码(vue)&#xff1a;<用法获取&#xff1a;--yarn-- yarn add autotypejs--git-- git clone https://github.com/1esse/autotypejs.git--npm-- …

int[]到string[]的转换方法 Array.ConvertAll

2019独角兽企业重金招聘Python工程师标准>>> using System; using System.Collections.Generic; //int[]到string[]的转换 public class Example { static void Main() { int[] int_array { 1, 2, 3 }; string[] str_array Array.ConvertAll(int_array, new Conve…

Linux结构目录

linux结构目录 Linux中有一句话叫做&#xff1a;一切皆文件。 下面来了解一下这些文件。 首先看一下Linux根目录下结构&#xff1a;bin&#xff1a;存放二进制可执行文件&#xff0c;一般常用命令都存放在这里。boot&#xff1a;存放系统启动时的一些引导文件。dev&#xff1a;…

# NVIDIA Jetson系列系统镜像备份烧录指南

NVIDIA Jetson系列系统镜像备份烧录指南 我使用的是Jetson AGX Xavier 注意事项: 1、烧录工具版本在4.2之前 是叫做 JetPack,&#xff0c; 4.2以及4.2以后的版本叫做SDKmanager&#xff0c; 对应的Jetson OS的版本在4.2与4.1也是差异比较大的&#xff0c;4.2之前的版本智能…

面向对象编程(OOP)----BLUE大师JS课堂笔记(二)

一&#xff0c;把面向过程的程序改写成面向对象的程序 1.前提 所有的程序都在onload里面 2.改写 不能函数嵌套&#xff0c;可以全局变量 3.onload-------------------->构造函数 全局变量------------------->属性 函数----------------------->方法 需要用到面向…

张仰彪第二排序法_C语言中的最常用的两种排序算法你知道吗?

冒泡法排序核心思想&#xff1a;若有N个数从小到大排序&#xff0c;需进行N-1轮比较&#xff0c;第一轮每相邻的两个数据进行比较N-1次&#xff0c;最终挑选出最大的数&#xff0c;放到这一轮的最后位置&#xff1b;第二轮比较N-1-i次&#xff0c;挑选出这一轮最大的数&#xf…

ZOJ3203

为什么80%的码农都做不了架构师&#xff1f;>>> 用一次导数求极值&#xff0c;但是还是犯了错误&#xff0c;要判断边界条件&#xff0c;就是墙上投影值小于0和大于h的时候。 //-------common header--------------- #include <stdio.h> #include <vector…

【校招面试 之 C/C++】第16题 C++ new和delete的实现原理

1、new new操作针对数据类型的处理&#xff0c;分为两种情况&#xff1a;&#xff08;1&#xff09;简单数据类型&#xff08;包括基本数据类型和不需要构造函数的类型&#xff09;代码实例&#xff1a;int* p new int;汇编码如下&#xff1a; int* p new int; 00E54C44 pus…

C++Primer学习笔记(二)

17.string对象中字符的处理&#xff1a;cctype头文件中定义:isalnum(c)  如果c是字母或数字,则为trueisalpha(c)  如果c是字符,则为trueiscntrl(c)  如果c是控制字符,则为trueisdigit(c)  如果c是数字,则为trueisgraph(c)  如果c不是空格,但可打印,则为trueisprint(c…

Windows下Qt程序打包

Windows下Qt程序打包 将windeployqt.exe 目录添加到系统环境变量 windeployqt.exe目录如下&#xff1a; 命令行打包 1、打开命令行 2、执行打包命令 windeployqt helloworld.exe -dirdeploy -release注意&#xff0c;应用程序使用绝对路径&#xff0c;如果是d盘&#x…

c语言栈的实现以及操作_数据结构之链栈基本操作的实现详解(C语言描述)

迎新过后&#xff0c;来带领你好好学习的小软准时归来&#xff0c;快带着上次学习链表操作的记忆和我开启新的旅程吧:链栈&#xff1a;就是栈的链式存储结构&#xff0c;简称链栈。首先我们要考虑的就是链栈的存储结构&#xff0c;由于栈只是在栈顶进行插入和删除操作&#xff…

float向u8和s8的转换

为什么80%的码农都做不了架构师&#xff1f;>>> 关于float向u8&#xff0c;s8这种类型转换&#xff0c;比较内藏玄机&#xff0c;还是小心为妙&#xff0c;这种级别的优化做了不如不做。 直接float向char类型的做法是用__ftol2_sse命令完成&#xff0c;具体怎么做的…

SQL Server DB Link相关

若想通过DBlink 清空表或执行存储过程&#xff0c;可以通过这种方式Insert into table select * from table时&#xff0c;Pull 方式比Push方式快很多转载于:https://www.cnblogs.com/luhe/p/9341413.html

windows下安装程序制作

引用链接: https://blog.csdn.net/signjing/article/details/7855855 工具: 1、脚本编辑工具 hmnisedit_downcc.zip 百度云盘链接&#xff1a;https://pan.baidu.com/s/1LZ-KFqMocM30UU8eMudAnA 提取码&#xff1a;6kgf 2、编译工具 nsis3.0.4cvs.zip 百度云盘链接&#…

实测 Mysql UUID 性能(转)

网上普遍认为Mysql 使用 UUID 主键性能低下&#xff0c;甚至建议用 自增ID 作为主键并用 UUID作唯一索引的方案。但没有提供具体的数据证明使用 UUID 作为主键时性能究竟低下到何种程度。为此我专门做了测试。 测试环境&#xff1a;WindowsXP &#xff0c;内存 4G &#xf…

date类型_06076.1.0如何将ORC格式且使用了DATE类型的Hive表转为Parquet表

温馨提示&#xff1a;如果使用电脑查看图片不清晰&#xff0c;可以使用手机打开文章单击文中的图片放大查看高清原图。Fayson的github&#xff1a;https://github.com/fayson/cdhproject提示&#xff1a;代码块部分可以左右滑动查看噢1文档编写目的在CDH中使用Hive时&#xff0…

SetGet and MACRO

为什么80%的码农都做不了架构师&#xff1f;>>> Set&Get 配合private是c class里面常用的。 这样很大程度上可以对数据的存取进行控制。 最近接触了大量的struct&#xff0c;然后直接存取其中变量的代码&#xff0c;在debug 跟踪的时候颇感不便。 Set&Get直…

spark之scala快速入门

scala和java都是在jvm之上的语言&#xff0c;相对来讲&#xff0c;scala热度比较低&#xff0c;其实并不是一个特别好的语言选择。 原因倒不是因为scala本身的缺点&#xff0c;而是使用人群不够多&#xff0c;论坛和社区不够活跃。这就跟社交软件一样&#xff0c;大家都用微信&…

python 归一化_只需 45 秒,Python 给故宫画一组手绘图!

作者 | 丁彦军责编 | 伍杏玲13日早晨&#xff0c;当北京市民拉开窗帘时发现&#xff0c;窗外雪花纷纷扬扬在空中飘落&#xff0c;而且越下越大&#xff0c;树上、草地、屋顶、道路上&#xff0c;都落满雪花。京城银装素裹&#xff0c;这是今冬以来北京迎来的第二场降雪。一下雪…

Windows平台下程序打包流程

Windows平台下程序打包流程 1、所有测试完成之后、程序release编译完成 2、依赖库打包 执行deploy.bat 脚本打包最新的程序以及依赖库 3、可执行程序打包 打开打包工程文件.evb&#xff0c; 使用 enigma virtual Box 打包可执行程序 点击“执行封包”&#xff0c;开始打包 …