guest.c
上传用户:tamljx
上传日期:2021-06-04
资源大小:60k
文件大小:2k
源码类别:

家庭/个人应用

开发平台:

C/C++

  1. /*guest.c:普通家庭成员功能选择界面,根据用户选项调用相应函数*/
  2. void Guest()
  3. {
  4.     int choice = 0;/*存放用户输入的功能选项代码*/
  5.     while(1)
  6.     {
  7.         printf("----------------------------------------------------------------n");
  8.         printf("|                                                              |n");
  9.         printf("|  Welcome to Welcome to Family Financial Management System    | n");
  10.         printf("|                                                              |n");
  11.         printf("|--------------------------------------------------------------|n");
  12.         printf("|                                                              |n");
  13.         printf("|           1. QueryByName()                                   |n");
  14.         printf("|           2. QueryBySeatNum()                                |n");
  15.         printf("|           3. SortBySum()                                     |n");
  16.         printf("|           0. Program end                                     |n");
  17.         printf("|                                                              |n");
  18.         printf("----------------------------------------------------------------n");
  19.         printf("n Please input your choose, (1,2,3,0)?n");
  20.         scanf("%d",&choice);
  21.         getchar();
  22.         switch(choice)
  23.             {
  24.             case 1:
  25.                 QueryByName();/*按家庭成员姓名查询财务信息*/
  26.                 break;
  27.             case 2:
  28.                 QueryBySeatNum();/*按家庭成员序号查询财务信息*/
  29.                 break;
  30.             case 3:
  31.                 SortBySum();/*按财务信息合计项排序浏览*/
  32.                 break;
  33.             case 0:
  34.                 exit(0);/*退出系统*/
  35.             default:
  36.                 break;
  37.         }
  38.     }
  39. }