🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1239

Ҳ̸�������������Windows 95�еİ�װ

#1239
From: ���ܵ�Сʨ
Date: Sat, 18 Apr 1998 00:00
68 lines
3281 bytes
 ��������ǵ�ǰ�����е�һ�ֺ������뷨 ,��������Windows 95��
ȴ�޴����뷨,�ź�֮ʱ�Һ÷��֡���������硷��623���컪�����
������Windows 95�е��������롷һ��,�����dz�����ڰ�װ������
��һ������:��η���ؽ���UNDOS��IMDMNG.EXE��ɵ����뷨Դ����
��(��IMDMNG��WB.IMD��WBXNEW.TXT)ת����Windows 95��Ҫ����ļ�
��ʽ?
    Windows 95Ҫ��Դ��      UCDOS��ɵ�Դ��
    �ļ���ʽ                �ļ���ʽ
    ����                    a       ��
    [text]                  aa      ʽ
    ��a                     aak     ��
    ʽaa                    aad     ʽ
    ��aak                   aat     ��
    ʽaad                   aaaa    ��
    ��aat                   aaaa    ��������
    ��aaaa                  aaan    ����
    ��������aaaa            ����
    ����aaan                ����
    ������ֹ�����,387K�����ļ����������������ܴ�,���DZ���д
������һС��C���򹩴�Ҳο�,�Խ�ʡ�����ǵ�ʱ�䡣
    #include<stdio.h>
    #define SPACE 32
    #define ENTER 13
    main()
    {FILE*pfiler,*pfilew;
       char readchar,ch[10];
       int  i=0;
    pfiler=fopen("c:\ucdos\wbxnew.txt","rb");
    pfilew=fopen("c:\win95\system\tra_wb.txt","w");
    if(pfiler==NULL && pfilew==NULL)
    {printf("open file error!");
      exit(0);
    }
    while(!feof(pfiler))/*��ѭ��*/
      {readchar=fgetc(pfiler);
      for(i=0;readchar!=SPACE;i++)/*��¼��ĸ���벿��*/
    {ch[i]=readchar;
       if(feof(pfiler))goto CLOSEFILE;
       readchar=fgetc(pfiler);
       }
      ch[i]=��\0';
    while(!feof(pfiler))/*���ո�*/
     {readchar=fgetc(pfiler);
      if(readchar!=SPACE && readchar!=��\0')break;
    }
    do{
    /*ת��һ��*/
    for (;readchar!=SPACE&&readchar!=ENTER;)
     {fputc(readchar,pfilew);
    if(feof(pfiler))goto CLOSEFILE;
    readchar=fgetc(pfiler);
    }
    for(i=0;ch[i]!=��\0';i++)/*��д��ĸ���벿��*/
        fputc(ch[i],pfilew);
    fputc(��\n',pfilew);
    if(readchar==SPACE)
      if(feof(pfiler))goto CLOSEFILE;
      readchar=fgetc(pfiler);
    }while(readchar!=��\n');
    }
    CHOSEFILE:
    fclose(pfilew);
    fclose(pfiler);
    }

--
�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: hsia.nju.edu.cn]
Technical Details
Message-ID: <3O9i7b$tnA@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,ceefe59bd9d78022,start
X-Google-Attributes: gidfc86e,public
From: pipishi.bbs@bbs.nju.edu.cn (���ܵ�Сʨ)
Subject: Ҳ̸�������������Windows 95�еİ�װ
Date: 1998/04/18
Message-ID: <3O9i7b$tnA@bbs.nju.edu.cn>
X-Deja-AN: 345403261
X-Filename: Programming/M.892910965.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.program