/***
*Attention:
* Copyright (c) 2013, PanYongPeng, 18728735432.
* All rights reserved.
*Purpose:
* This is a library book information manage system.
*This is the main source file.
*Name:
*LibrarySystem.c
* [Public]
****/
#include "LibrarySystem.h"
/***********主程序***********/
int main()
{
int n;
switch(Login())/*管理员返回值1,读者返回值0*/
{
case 1: n=ChooseMenu_Admin(); Contro_Admin(n); break;
case 0: n=ChooseMenu_Reader(); Contro_Reader(n); break;
}
Farewell();
return 0;
}
/***********登录模块***********/
int Login()/*用户登陆界面,管理员返回值1,读者返回值0*/
{
int flag=-1;
while(flag==-1)
{
int i;
system("cls");