You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
void mai_n ( ) //主菜单
{
int n , w = 0 ;
printf ( " ******************************************************************************** \n " ) ;
printf ( " ** MENU ** \n " ) ;
printf ( " ******************************************************************************** \n " ) ;
printf ( " ** * @$ 1- 输 入 课 程 信 息^_^ * ** \n " ) ;
printf ( " ** * @$ 2- 浏 览 课 程 信 息^_^ * ** \n " ) ;
printf ( " ** * @$ 3- 查 询 课 程 信 息^_^ * ** \n " ) ;
printf ( " ** * @$ 4- 统 计 选 课 情 况^_^ * ** \n " ) ;
printf ( " ** * @$ 5- 进 入 选 课 操 作^_^ * ** \n " ) ;
printf ( " ** * @$ 0- 退 出 选 课 系 统^_^ * ** \n " ) ;
printf ( " ******************************************************************************** \n " ) ;
printf ( " 请选择( 1-5) : " ) ;
scanf ( " %d " , & n ) ;
do
{
if ( n > 5 | | n < 0 )
{
printf ( " \n 输入错误!请重新输入! \n " ) ;
scanf ( " %d " , & n ) ;
}
else w = 1 ;
} while ( w = = 0 ) ;
switch ( n )
{
case 1 : insert ( ) ; break ;
case 2 : browser ( ) ; break ;
case 3 : search ( ) ; break ;
case 4 : xuanke_information ( ) ; break ;
case 5 : xuan_ke ( ) ; break ;
case 0 :
printf ( " \n ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ ^_^ \n \n 感谢您的使用~~~~~通信工程1803--制作人;石皓华&&王越。 " ) , system ( " pause " ) , exit ( 0 ) ;
}
}