#1 - 2009-12-21 18:18
sofitte
昨天看到word也能做动画..得到启发=v=....dos也完全ok嘛
本来想用PlaySound加上音乐的...不知杂的...播放不了...算了...

#include "stdafx.h"

#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
#include <time.h>
#define IMAGE 1322  //文本总数
static int a=0;
int image()
{
        FILE *fp;
        char x;
        char add[1024]={0};
        sprintf(add,"\\image\\%d.txt",a);

        if((fp=fopen(add,"r"))==NULL)
                puts("蛋痛了...");

        else
        {
                while(1)
                {
                        x=fgetc(fp);
                        if(x==EOF)
                                break;
                        fputc(x,stdout);
                }
                fclose(fp);
        }
        if (IMAGE==a)
        {
                return 0;
        }
        a++;
        return 1;
}
int _tmain(int argc, _TCHAR* argv[])
{
        DWORD dw_time_start  = GetTickCount();
        while(image()!=0){
                Sleep(160);
                image();
        }
        DWORD dw_time_end  = GetTickCount();
        DWORD dw_time_delta  = dw_time_end - dw_time_start;
        printf("%d",dw_time_delta);
        system("PAUSE");
}
#2 - 2009-12-21 18:20
蛋痛那里加个return 1;

#2-1 - 2009-12-21 20:39
Tr.
这幅大作画的是啥
#2-2 - 2009-12-21 22:21
sofitte
Tr. 说: 这幅大作画的是啥
动画啊..动画...(拖
#3 - 2009-12-21 19:24
(Awesome!)
Notepad也没问题,就差用小画家了
#4 - 2009-12-21 21:49
(The Ultimate Redemption)
已經有人開發了嘛- -
貌似國人沒什麼玩telnet的ascii的

不要dos要bash(死
#4-1 - 2009-12-21 22:21
sofitte
有人开发了吗...不清楚...反正是无聊写的
#4-2 - 2009-12-22 10:18
最終鬼畜兵器Pro
sofitte 说: 有人开发了吗...不清楚...反正是无聊写的
曾經蛋疼的去國外的telnet站看ascii的動畫- -
覺得很高科技
#5 - 2010-1-2 22:19
(不说脏话会死的...)
眼花了已经...