2012年10月24日

文件操作学习笔记

摘要: #include <stdlib.h>#include <stdio.h>typedef struct student{ char name[100];int num; int score;}STUDENT;STUDENT stu[ ]={"zhangsan",01,90,"lisi",02,95,"wangwu",03,95};void Wf(){FILE *fp;fp = fopen("stu.txt","wb");int i;for(i=0;i<3;i++){ 阅读全文

posted @ 2012-10-24 09:28 whl-hl 阅读(122) 评论(0) 推荐(0) 编辑

导航