摘要: #include#include struct Stu{ char name[10]; unsigned no,age; };int main(){ struct Stu s; FILE *fp; fscanf(stdin,"%s%d%d",s.name,&s.no,&s.age); if((fp=fopen("stu.txt","w"))==NULL) { puts("error\n"); exit(1); } fprintf(fp,"%s\t%d\t%d\n",s.name, 阅读全文
posted @ 2011-11-10 21:56 谈笑风生膜法师 阅读(338) 评论(0) 推荐(0)