02 2019 档案
摘要:#include<stdio.h>#include<windows.h>#include<string.h>int main(void){ char name[32]; char password[32]; FILE*data; char name_tmp[32]; char password_tm
阅读全文
摘要:#include<stdio.h>#include<windows.h>int main(void){ FILE*data; data=fopen("C:\\teacher.txt","a");//"a"尾部追加一个“写”的功能 if(!data){ //!data等效于 data == NULL
阅读全文
摘要:#include <stdio.h>#include <windows.h>int main(void){ FILE *a; a=fopen("C:\\student.txt","r"); if(!a){ printf("文件错误!"); }else{ printf("文件打开成功!\n"); sy
阅读全文