可以通过 INT86 函数进行系统调用来得到方向键的码。
问:关于文件结束的判断需要对一个log文件进行分析,通过下面的方法打开文件:
if ((fp=fopen(free,“r+”))==NULL){ //the free ip file created by manual printf(“can’t open file %s.”,free);
putchar(’\n’);
exit(0);
通过fgets函数从fp流中取出字符串验证,正确!
但当使用while(fgetc(fp)!=EOF){}进行提取页码:[1] [2] [3] [4] [5] [6] 第2页、共6页 |