⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guest.c

📁 你想了解着个东西吗?请进来,着是很有用的!
💻 C
字号:
#include "shead.h"
#include "creat.c"
/* creat.c:添加十名候选人,初始化系统工作 */
#include "bintro.c"
#include "qname.c"
/* qname.c 按姓名查看候选人介绍 */
/* bintro.c 浏览候选人介绍,即显示候选人文件内容(没有投票结果) */
#include "modnum.c"
/* modnum.c 根据候选人序号修改候选人介绍 */
#include "sort.c"
/* sort.c 根据投票结果排行 */
#include "tovote.c"
#include "modps.c"
/*#include "clearv.c"*/
void Guest(user m_user)/*存放用户的登录信息*/
{
  int choice=0;/* 存放用户选项的变量 */
  while(1)
  {
    clrscr();
  printf("\n+-----------------------------------------+\n");
  printf("|   WelCome to Vote Management System     |\n");
  printf("|----------------------+------------------|\n");
  printf("|1.BrowseIntro         |2.QueryIntro      |\n");
  printf("|3.vote                |4.Modify Password |\n");
  printf("+----------------------+------------------+\n");
  printf("|0.Exit                |\n");
  printf("+----------------------+\n");
  printf("input you choice here:");
  scanf("%d",&choice);
  fflush(stdin);
  switch(choice)
  {
   case 1:
      BrowseIntro();
      break;
   case 2:
      QueryIntro();
      break;
   case 3:
      vote();
      break;
   case 4:
      ModifyMyPassword(m_user);
      break;
   case 0:
      exit(0);
   default:
      printf("select error \nPress any key to continu....\n");
      getch();
      break;
  }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -