Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by ���ܵ�Сʨ
Sat, 18 Apr 1998 00:00
Ҳ̸�������������Windows 95�еİ�װ
Author: ���ܵ�Сʨ
Date: Sat, 18 Apr 1998 00:00
Date: Sat, 18 Apr 1998 00:00
68 lines
3281 bytes
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);
}
--
[m[1;32m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: hsia.nju.edu.cn][m
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads