IT男专用表白程序
[c++]代码库
001 |
#include<iostream.h> |
002 |
#include<windows.h> |
003 |
#include<stdio.h> |
004 |
#define stoptimeshort 40
|
005 |
#define stoptimelong 100
|
006 |
void
main() |
007 |
{ |
008 |
//////////////////
|
009 |
char
ch[10]; |
010 |
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,
|
011 |
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,
|
012 |
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,
|
013 |
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,
|
014 |
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,
|
015 |
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,
|
016 |
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,
|
017 |
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,
|
018 |
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
|
019 |
};
|
020 |
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,
|
021 |
0,1,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1,0,
|
022 |
1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,
|
023 |
1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,
|
024 |
0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,
|
025 |
0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,
|
026 |
0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,
|
027 |
0,0,0,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,
|
028 |
0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,
|
029 |
};
|
030 |
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,
|
031 |
0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,
|
032 |
1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,
|
033 |
1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,
|
034 |
0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,
|
035 |
0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0,
|
036 |
0,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,
|
037 |
0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,
|
038 |
0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,
|
039 |
};
|
040 |
system
( "title I Love You"
); |
041 |
//////////////////
|
042 |
printf
( "%s" , " "
); |
043 |
Sleep ( stoptimelong );
|
044 |
printf
( "%s" , "其"
); |
045 |
Sleep ( stoptimeshort );
|
046 |
printf
( "%s" , "实\n"
); |
047 |
////////////////////////////////
|
048 |
printf
( "%s" , " "
); |
049 |
system
( "color 72"
); |
050 |
Sleep ( stoptimelong );
|
051 |
printf
( "%s" , "有"
); |
052 |
Sleep ( stoptimeshort );
|
053 |
printf
( "%s" , "一"
); |
054 |
Sleep ( stoptimeshort );
|
055 |
printf
( "%s" , "句"
); |
056 |
Sleep ( stoptimeshort );
|
057 |
printf
( "%s" , "话\n"
); |
058 |
///////////////////////////
|
059 |
printf
( "%s" , " "
); |
060 |
system
( "color 79"
); |
061 |
Sleep ( stoptimelong );
|
062 |
printf
( "%s" , "一"
); |
063 |
Sleep ( stoptimeshort );
|
064 |
printf
( "%s" , "直"
); |
065 |
Sleep ( stoptimeshort );
|
066 |
printf
( "%s" , "藏"
); |
067 |
Sleep ( stoptimeshort );
|
068 |
printf
( "%s" , "在"
); |
069 |
Sleep ( stoptimeshort );
|
070 |
printf
( "%s" , "我"
); |
071 |
Sleep ( stoptimeshort );
|
072 |
printf
( "%s" , "心"
); |
073 |
Sleep ( stoptimeshort );
|
074 |
printf
( "%s" , "里\n"
); |
075 |
/////////////////////////////
|
076 |
printf
( "%s" , " "
); |
077 |
system
( "color 7c"
); |
078 |
Sleep ( stoptimelong );
|
079 |
printf
( "%s" , "可"
); |
080 |
Sleep ( stoptimeshort );
|
081 |
printf
( "%s" , "是\n"
); |
082 |
///////////////////////////////
|
083 |
printf
( "%s" , " "
); |
084 |
system
( "color 7d"
); |
085 |
Sleep ( stoptimelong );
|
086 |
printf
( "%s" , "我"
); |
087 |
Sleep ( stoptimeshort );
|
088 |
printf
( "%s" , "没"
); |
089 |
Sleep ( stoptimeshort );
|
090 |
printf
( "%s" , "有"
); |
091 |
Sleep ( stoptimeshort );
|
092 |
printf
( "%s" , "勇"
); |
093 |
Sleep ( stoptimeshort );
|
094 |
printf
( "%s" , "气"
); |
095 |
Sleep ( stoptimeshort );
|
096 |
printf
( "%s" , "对"
); |
097 |
Sleep ( stoptimeshort );
|
098 |
printf
( "%s" , "你"
); |
099 |
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 |
} |