C语言课程设计——家庭财务管理系统.docxVIP

  • 1
  • 0
  • 约1.52万字
  • 约 20页
  • 2023-07-19 发布于上海
  • 举报

C语言课程设计——家庭财务管理系统.docx

C 语言课程设计——家庭财务管理系统.txt #includestdio.h #includestring.h #include stdlib.h #include conio.h #define maxsize 2000 //定义家庭成员最大人数#define maxinfor 20000 //定义收支信息的最大容量struct people //家庭成员登录信息结构 { char username[200]; //用户名(也是姓名) char code[200]; //密码 char flag[200]; //标志 0 为普通成员,1 为家长 }peo[maxsize]; struct thing //成员收支信息结构 { char name[30]; //姓名int year; //年份 int month; //月份 int income; //收入 int output; //支出 }thi[maxinfor]; int n=0,m=0; //全局变量 n 为文件中家庭成员实际容量 m 为文件中收支信息实际容量int hold() //将数据写进文件中 { FILE *fp; int i; fp=fopen(peoplelist4.txt,w); { fprintf(fp,%d\n,n); for(i=0;in;i++) fprintf(fp,%s %s %s\n,peo

文档评论(0)

1亿VIP精品文档

相关文档