guest.c
上传用户:tamljx
上传日期:2021-06-04
资源大小:60k
文件大小:2k
- /*guest.c:普通家庭成员功能选择界面,根据用户选项调用相应函数*/
- void Guest()
- {
- int choice = 0;/*存放用户输入的功能选项代码*/
- while(1)
- {
- printf("----------------------------------------------------------------n");
- printf("| |n");
- printf("| Welcome to Welcome to Family Financial Management System | n");
- printf("| |n");
- printf("|--------------------------------------------------------------|n");
- printf("| |n");
- printf("| 1. QueryByName() |n");
- printf("| 2. QueryBySeatNum() |n");
- printf("| 3. SortBySum() |n");
- printf("| 0. Program end |n");
- printf("| |n");
- printf("----------------------------------------------------------------n");
- printf("n Please input your choose, (1,2,3,0)?n");
- scanf("%d",&choice);
- getchar();
- switch(choice)
- {
- case 1:
- QueryByName();/*按家庭成员姓名查询财务信息*/
- break;
- case 2:
- QueryBySeatNum();/*按家庭成员序号查询财务信息*/
- break;
- case 3:
- SortBySum();/*按财务信息合计项排序浏览*/
- break;
- case 0:
- exit(0);/*退出系统*/
- default:
- break;
- }
- }
- }