guest.c
来自「c语言的一个课程设计。它包括函数的基本调用」· C语言 代码 · 共 55 行
C
55 行
#include "e:\vot\shead.h"
#include "e:\vot\creat.c"
/* creat.c:添加十名候选人,初始化系统工作 */
#include "e:\vot\bintro.c"
#include "e:\vot\qname.c"
/* qname.c 按姓名查看候选人介绍 */
/* bintro.c 浏览候选人介绍,即显示候选人文件内容(没有投票结果) */
#include "e:\vot\modnum.c"
/* modnum.c 根据候选人序号修改候选人介绍 */
#include "e:\vot\sort.c"
/* sort.c 根据投票结果排行 */
#include "e:\vot\tovote.c"
#include "e:\vot\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 + =
减小字号Ctrl + -
显示快捷键?