Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by ���ܵ�Сʨ
Sat, 18 Apr 1998 00:00
���ٻ�ȡ4����Ӣ���ֵ�Դ��ݵij���
Author: ���ܵ�Сʨ
Date: Sat, 18 Apr 1998 00:00
Date: Sat, 18 Apr 1998 00:00
37 lines
2339 bytes
2339 bytes
UCDOS5.0�ṩ��һ����4��������ʵ�Ӣ���ֵ�,Ϊ��ʹ������
������ֵ�ḻ�Ĵʻ�,���Ƿ������ļ��ĸ�ʽ,��д�˿������Ӣ��
�ֵ��С����
��UCDOSĿ¼��,���Ӣ���ֵ���ļ���Ϊdict.ovr���ļ���UCDO
S��־���ֵ���������ֵ�����������ɡ���������ĵ��ֵ�
�������ʽΪ:
a:arj.һ<�ָ���>aardvark:n���� <�ָ���> aardwolf: n����<
�ָ���>����
����,ÿ���ֵ�����<�ָ���>Ϊ����"0"��
�ݴ�,���ǵ���ҪĿ�ľ���,�ҵ�dict.ovr���ֵ����ʼλ��,��
����ȫ�����ʼ��������塣
�������Ǹ����Turbo C 2.0��д�Ŀ������Ӣ���ֵ��Դ����,
�����߲ο���
#include "stdio.h"
main ()
{
long js;
char ch;
FILE*fp; /* �Զ�������ʽ��"dict.ovr"�ļ�*/
fp=fopen("c:\\ucdos\dict.ovr","rb");
/* ���ֵ�������һ���ʻ�"a:arj.һ"�������� */
/* "a:"Ϊ���Ҹ��,ȷ���ֵ���������ʼλ�� */
while (!(fgetc (fp)=='a' && fgetc (fp) ==':'));
/* ����ÿ���ʻ�Ϊһ�е���ʽ��ӡ�ֵ�*/
printf ("a:");
while ((ch=fgetc(fp))!=EOF)
{
if (ch=='\0') printf ("\n");
else printf ("%c", ch);
/*�ر��ļ�*/
}
flose (fp);
}
--
[m[1;37m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ 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