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,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, |
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, |
040 |
system ( "title I Love You" ); |
043 |
Sleep ( stoptimelong ); |
045 |
Sleep ( stoptimeshort ); |
046 |
printf ( "%s" , "实\n" ); |
049 |
system ( "color 72" ); |
050 |
Sleep ( stoptimelong ); |
052 |
Sleep ( stoptimeshort ); |
054 |
Sleep ( stoptimeshort ); |
056 |
Sleep ( stoptimeshort ); |
057 |
printf ( "%s" , "话\n" ); |
060 |
system ( "color 79" ); |
061 |
Sleep ( stoptimelong ); |
063 |
Sleep ( stoptimeshort ); |
065 |
Sleep ( stoptimeshort ); |
067 |
Sleep ( stoptimeshort ); |
069 |
Sleep ( stoptimeshort ); |
071 |
Sleep ( stoptimeshort ); |
073 |
Sleep ( stoptimeshort ); |
074 |
printf ( "%s" , "里\n" ); |
077 |
system ( "color 7c" ); |
078 |
Sleep ( stoptimelong ); |
080 |
Sleep ( stoptimeshort ); |
081 |
printf ( "%s" , "是\n" ); |
084 |
system ( "color 7d" ); |
085 |
Sleep ( stoptimelong ); |
087 |
Sleep ( stoptimeshort ); |
089 |
Sleep ( stoptimeshort ); |
091 |
Sleep ( stoptimeshort ); |
093 |
Sleep ( stoptimeshort ); |
095 |
Sleep ( stoptimeshort ); |
097 |
Sleep ( stoptimeshort ); |
099 |
Sleep ( stoptimeshort ); |
100 |
printf ( "%s" , "说\n" ); |
103 |
system ( "color 7e" ); |
104 |
Sleep ( stoptimelong ); |
106 |
Sleep ( stoptimeshort ); |
107 |
printf ( "%s" , "天\n" ); |
110 |
system ( "color 7a" ); |
111 |
Sleep ( stoptimelong ); |
113 |
Sleep ( stoptimeshort ); |
115 |
Sleep ( stoptimeshort ); |
117 |
Sleep ( stoptimeshort ); |
119 |
Sleep ( stoptimeshort ); |
121 |
Sleep ( stoptimeshort ); |
123 |
Sleep ( stoptimeshort ); |
124 |
printf ( "%s" , "气\n" ); |
127 |
system ( "color 7b" ); |
128 |
Sleep ( stoptimelong ); |
130 |
Sleep ( stoptimeshort ); |
132 |
Sleep ( stoptimeshort ); |
134 |
Sleep ( stoptimeshort ); |
136 |
Sleep ( stoptimeshort ); |
137 |
printf ( "%s" , "说:\n" ); |
140 |
system ( "color 79" ); |
141 |
Sleep ( stoptimelong ); |
143 |
Sleep ( stoptimeshort ); |
144 |
printf ( "%s" , "…\n" ); |
147 |
system ( "color 72" ); |
148 |
Sleep ( stoptimelong ); |
150 |
Sleep ( stoptimeshort ); |
152 |
Sleep ( stoptimeshort ); |
153 |
printf ( "%s" , "…\n" ); |
155 |
Sleep ( stoptimelong ); |
156 |
system ( "color fc" ); |
157 |
for ( int i=0; i<9; i++ ) |
160 |
for ( int j=0; j<36; j++ ) |
173 |
Sleep ( stoptimelong ); |
175 |
Sleep ( stoptimeshort ); |
177 |
Sleep ( stoptimeshort ); |
179 |
Sleep ( stoptimeshort ); |
181 |
Sleep ( stoptimeshort ); |
183 |
Sleep ( stoptimeshort ); |
185 |
Sleep ( stoptimeshort ); |
187 |
Sleep ( stoptimeshort ); |
188 |
printf ( "%s" , "?(Y/N)" ); |
193 |
Sleep ( stoptimelong ); |
194 |
if ( ch[0]== 'y' ||ch[0]== 'Y' ) |
196 |
system ( "color fc" ); |
197 |
for ( int i=0; i<9; i++ ) |
200 |
for ( int j=0; j<21; j++ ) |
214 |
if ( ch[0]== 'n' ||ch[0]== 'N' ) |
216 |
system ( "color 0f" ); |
217 |
for ( int i=0; i<9; i++ ) |
220 |
for ( int j=0; j<22; j++ ) |
231 |
Sleep ( stoptimelong ); |
233 |
Sleep ( stoptimeshort ); |
235 |
Sleep ( stoptimeshort ); |
237 |
Sleep ( stoptimeshort ); |
238 |
printf ( "%s" , "……\n" ); |
243 |
system ( "color 0f" ); |
[代码运行效果截图]
转载于:https://www.cnblogs.com/yangkai-cn/archive/2012/11/17/4017351.html