对文件存贮结构体变量的一些操作记录及几个错误解决
摘要:
做到第十三章的文件题,做一些记录。#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 3typedef struct student{int num;char name[10];float score[3];float ave;}BT;void main() {FILE *fp,*fp1;BT s[N],s1[N],s3[N+1],s4[N+1],temp;int i,j,n;if((fp=fopen("file","w+"))==0 阅读全文
posted @ 2012-11-03 22:06 天涯古人 阅读(106) 评论(0) 推荐(0)
浙公网安备 33010602011771号