填空题

磁盘文件名的一般组成为:______。

【参考答案】

盘符:路径\文件主名.扩展名
<上一题 目录 下一题>
热门 试题

问答题
C盘中P1.c.txt文件的内容为:abcde。A盘中P1.c.txt为空文档。 #include<stdio.h> #include<stdlib.h> main() FILE *f1,*f2; int k; if((fl=fopen( C: p1.c.txt , r ))==NULL) printf( can not open file! n ); exit(0); if((f2=fopen( A: p1.c.txt , w ))==NULL) printf( can not open file! n ); exit(0); for(k=1;k<=500;k++) if(feof(f1))break; fputc(fgetc(f1),f2); printf( 成功实现复制 ); fclose(f1); fclose(f2);
问答题
main() struct student char name[10]; float k1; float k2;a[2]= tom ,50,60, make ,70,90,*p=a; int i; printf( n name:%s total=%f n ,p->name,p->k1+p->k2); printf( n name:%s total=%f n ,a[1].name,a[1].k1+a[1].k2);
相关试题
  • 下面的程序是使用结构型来计算复数m和n的差...
  • 编写程序,建立一个文本文件datal,把本周...
  • struct st int i;int j;; main()...
  • 编写程序,用以建立某班级的学生档案信息,...
  • struct n int x; char c; ; void...