2014简易水电费管理系统源程序代码.docVIP

  • 46
  • 0
  • 约4.04千字
  • 约 5页
  • 2016-12-25 发布于北京
  • 举报
简易水电费管理系统源程序代码 法一: #includestdio.h #includestring.h #includestdlib.h struct member {char no[100]; ?char name[20]; ?char password[20]; ?float wfee; ?float efee; }memb; void newadd(int n) { int t,i; fseek(fp,0,SEEK_END); printf(新添人数:); scanf(%d,t); for(i=0;it;i++) { printf(新添第%d个成员:); scanf(%s %s %s %f %f,memb.no,memb.name,memb.password,memb.wfee,memb.efee); fwrite(memb,sizeof(struct member),1,fp); } } void look(int n) { ? char a[100]; ? printf(输入卡号:); scanf(%s,a); int i=0; rewind(fp); while(1) { fread(memb,sizeof(struct member),1,fp); if(feof(fp)||memb.no==a) break; i++; } if(!feof(fp)) { prin

文档评论(0)

1亿VIP精品文档

相关文档