摘要: #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))!=... 阅读全文
posted @ 2018-04-27 22:20 sunnybowen 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #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... 阅读全文
posted @ 2018-04-27 20:16 sunnybowen 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 详细计算见:https://blog.csdn.net/u012807459/article/details/48545141 博客,写的很好。规则要理解并且记下来。 阅读全文
posted @ 2018-04-27 19:53 sunnybowen 阅读(411) 评论(0) 推荐(0) 编辑