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 choose ( int n ) //目录的选项
{
system ( " cls " ) ;
int y ;
switch ( n )
{
case 1 : input ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 2 : output ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 3 : modify ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 4 : lookat ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 5 : section ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 6 : rank ( ) ;
printf ( " \n \n \n \n \t \t \t 是否返回? 输入1表返回, 输入2表退出! \n " ) ;
scanf ( " %d " , & y ) ;
if ( y = = 1 )
choose ( fun ( ) ) ; break ;
case 7 : exit ( 0 ) ; break ;
default : printf ( " \n \n \t \t \t 输入没有的选项,请重新输入! \n " ) ;
choose ( fun ( ) ) ;
}
}
int fun ( ) //目录函数
{
int n ;
int i ;
system ( " cls " ) ;
printf ( " \n \n \t \t \t \t 成绩记录簿 " ) ;
printf ( " \n \n \t \t \t " ) ;
for ( i = 0 ; i < 36 ; i + + )
printf ( " * " ) ;
printf ( " \n " ) ;
printf ( " \t \t \t *************菜单*************** \n " ) ;
printf ( " \t \t \t *|1、创建学生的信息! \t |* \n " ) ;
printf ( " \t \t \t *|2、输出所有学生的信息! \t |* \n " ) ;
printf ( " \t \t \t *|3、修改成绩! \t |* \n " ) ;
printf ( " \t \t \t *|4、查询! \t |* \n " ) ;
printf ( " \t \t \t *|5、显示成绩分段的学生信息! \t |* \n " ) ;
printf ( " \t \t \t *|6、学生成绩排名! \t |* \n " ) ;
printf ( " \t \t \t *|7、退出成绩记录簿! \t |* \n " ) ;
printf ( " \t \t \t *****设计者:吕永太 朱鹏俊**** \n " ) ;
printf ( " \t \t \t " ) ;
for ( i = 0 ; i < 36 ; i + + )
printf ( " * " ) ;
printf ( " \n \n " ) ;
printf ( " \n \t \t \t 请输入选项: " ) ;
scanf ( " %d " , & n ) ;
return n ;
}