按要求写SHELL程序 ...急急急!!!!!!!!!!!!!!!!!!!!!!!!!!在线等.......

2024-11-22 13:00:34
推荐回答(2个)
回答1:

showMenu(){
        echo -e "按1:显示关于自己的信息\n按2:显示全院同学的学号,姓名,性别\n按3:从给定的文件中(score)找出自己的成绩信息并输出到文件中(cj+学号)\n按4:\n按5:\n按6:\n按7:\n按0:退出"
}

while :
do
        showMenu
        read num
        case $num in
                0)
                        exit 0
                        ;;
                1)
                        ;;
                2)
                        ;;
                3)
                        ;;
                4)
                        ;;
                5)
                        ;;
                6)
                        ;;
                7)
                        ;;
                *)
                        echo -e "Error\n请输入0-7这8个自然数"
                        ;;
        esac
done

回答2:

用存储写....
CREATE DEFINER = CURRENT_USER PROCEDURE `NewProc`(IN `one` int)
BEGIN
set @x=one
END;
call newproc(0);