先用char 定义一个数组用来存放 条件 system是给系统发送指令的函数,用strcmp来比较条件是否正确 shutdown -s -t 60 :系统将在60s后关机 shutdown -a :取消指令