果然够淫荡程序。。。(转)
#include <stdio.h>#include <string.h>
#define SLEEP_TIME1 10
#define SLEEP_TIME2 50
#define SLEEP_TIME3 200
#define SPEED_MOVE1 10
#define SPEED_MOVE2 25
#define SPEED_MOVE3 26
#define SPEED_MOVE4 27
char a[19][13]={
" ",
" ",
" o ",
" o ",
" o ",
" [url=]/@\\[/url] ",
" @@@@@ ",
" ( ) ",
" ( ) ",
" ( ) ",
" ( ) ",
" ( ) ",
" ( )DD ",
" C=(=)==\\",
" C=(=)= |",
" C=(=)= |",
" C=(=)= /",
" @@BBB@@ "
" @@@@@@@ "};
char b[7][13]={
" /##\\ ",
" @@ ",
" @@ ",
" @@ ",
" @@ ",
" @@@@ ",
" @@BB@@ "};
int sum=0;
/*
char a[13][13]={
" /#\\ ",
" ##### ",
" I IDD ",
" C=I=I==\\",
" C=I=I= |",
" C=I=I= |",
" C=I=I= /",
" I I ",
" I I ",
" i i ",
" i i ",
" i i ",
" i i ",
" @@BBB@@ "
" @@@@@@@ "};
*/
void Fuck_Microsoft();
int main(void)
{
int i,j,k,l;
while(1){
sum++;
if(sum==SPEED_MOVE2){
for(i=2;i>0;i--){
system("cls");
a[i-1][6]=a[i][6];
a[i][6]=' ';
for(j=0;j<19;j++){
if(j==3||j==4)
continue;
printf("%s\n",a[j]);
}
sleep(SLEEP_TIME3);
}
}
if(sum==SPEED_MOVE3){
for(i=3;i>1;i--){
system("cls");
a[i-1][6]=a[i][6];
a[i][6]=' ';
for(j=0;j<19;j++){
if(j==4)
continue;
printf("%s\n",a[j]);
}
sleep(SLEEP_TIME3+100);
}
}
if(sum==SPEED_MOVE4){
for(i=4;i>2;i--){
system("cls");
a[i-1][6]=a[i][6];
a[i][6]=' ';
for(j=0;j<19;j++){
printf("%s\n",a[j]);
}
sleep(SLEEP_TIME3+200);
}
break;
}
for(i=12;i>7;i--){
system("cls");
for(k=i;k<=i+4;k++){
for(l=3;l<12;l++){
if(l==5||l==7)
continue;
a[k-1][l]=a[k][l];
a[k][l]=' ';
}
}
for(j=5;j<19;j++){
printf("%s\n",a[j]);
}
if(sum>=SPEED_MOVE1)
sleep(SLEEP_TIME1);
else
sleep(SLEEP_TIME2);
}
for(i=11;i<16;i++){
system("cls");
for(k=i;k>=i-4;k--){
for(l=3;l<12;l++){
if(l==5||l==7)
continue;
a[k+1][l]=a[k][l];
a[k][l]=' ';
}
}
for(j=5;j<19;j++){
printf("%s\n",a[j]);
}
if(sum>=SPEED_MOVE1)
sleep(SLEEP_TIME1);
else
sleep(SLEEP_TIME2);
}
}
Fuck_Microsoft();
return 0;
}
void Fuck_Microsoft()
{
char *fuck_windows="一个系统如果不能看到源代码,就象想用da shou qiang来体验make love的感觉一样蠢\n";
int i;
system("cls");
for(i=0;i<8;i++){
printf("%s\n",b[i]);
}
sleep(SLEEP_TIME3+1000);
for(i=0;i<strlen(fuck_windows);i++){
printf("%c",fuck_windows[i]);
sleep(SLEEP_TIME2);
}
sleep(SLEEP_TIME2+1000);
}
----------------解决方案--------------------------------------------------------
复制了下有10处错误.希望用红字标出
----------------解决方案--------------------------------------------------------
很好玩啊````下来看看代码```
----------------解决方案--------------------------------------------------------
SLEEP```函数是用来干什么的啊````睡眠?
----------------解决方案--------------------------------------------------------
哇.这不是为难我吗.其实我呢也是刚学.在网上转转想了解了解C到底是怎么回事,,,这是我有红客上看到的.我觉得好有意思哦.所以就拿来了.不过真实作者没有流下名字...
希望我们新手朋友们会对C更加喜欢...
----------------解决方案--------------------------------------------------------
确实是..sleep函数是干什么的?
这个动态效果是不是就是连续输出两个不同的字符,然后看着好象是动了一样?就像动画片似的?蛮有意思,希望哪高手可以写出正确的.
----------------解决方案--------------------------------------------------------
有问题啊!!!期待正确的。。。。:o :o
----------------解决方案--------------------------------------------------------
觉得好无聊啊~~~:L
----------------解决方案--------------------------------------------------------
果然够淫荡,不过代码没看懂的说...
----------------解决方案--------------------------------------------------------
进来看看
----------------解决方案--------------------------------------------------------