surface.c

来自「图书管理系统」· C语言 代码 · 共 36 行

C
36
字号
/* file_name:	surface.c
 * author:	wangtiezhen miuliang @ Xidian University
 * description:	
 */

#include"sur_stu_func.c"
#include"sur_tea_func.c"
#include"sur_other.c"
#include"sur_head.h"
int command_num_max, command_user_type;
#include"sur_basic.c"
flag_type main_surface()
{
	if(user.type == student){
		command_num_max = const_stu_command_num_max;
		command_user_type = const_stu_user_type;
	}else if(user.type == teacher){
		command_num_max = const_tea_command_num_max;
		command_user_type = const_tea_user_type;
	}else{
		printf("Error on user.type\n");
		return sys_close;
	}
	
	flag_type flag = session_ok;
	while(flag == session_ok){
		printf("please enter your command:");
		flag = sur_get_command();
	}
	
	return flag;
	
	
}

⌨️ 快捷键说明

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