C语言实现电话薄管理系统.docVIP

  • 4
  • 0
  • 约 9页
  • 2017-02-09 发布于四川
  • 举报
C语言实现电话薄管理系统

#includestdio.h #includestring.h #includestdlib.h #define len sizeof(struct st) struct st { char name[20]; __int64 tel; char address[20]; }cot[100]; void add() { FILE *fp; system(color 0A); int i=0; if((fp=fopen(houguojun.txt,ab+))==NULL) { printf(this file not opened\n); exit(0); } printf(\t\t输入0退出\n); while(1) { printf(请输入电话号码\n); scanf(%I64d,cot[i].tel); if(cot[i].tel==0) break; printf(请输入名字\n); scanf(%s,cot[i].name); printf(请输入地址\n); scanf(%s,cot[i].address); fwrite(cot[i],len,1,fp); i++; } fclose(fp); system(cls); } void modify() { FILE

文档评论(0)

1亿VIP精品文档

相关文档