摘要:
#include int main(void){ FILE *fp;//定义指针 char ch; if((fp=fopen("d:\\yy.txt","r"))==NULL){// printf("cannot open file,press any key to exit!"); exit(0); } while((ch=fgetc(fp))!=... 阅读全文
摘要:
#include struct student{ int num; char sex; float score; } ; union data{ int k; char ch; float f; }; int main(void){ FILE *fp;//定义指针 char ch; if((fp=fopen("d:\\yy.txt","w... 阅读全文
摘要:
详细计算见:https://blog.csdn.net/u012807459/article/details/48545141 博客,写的很好。规则要理解并且记下来。 阅读全文