这是我改正后的,应该没有逻辑错误了- @echo off
- :0
- cls
- echo #################
- echo how are you
- echo 1.how are you
- echo 2.nice to see you
- echo 3.bye
- echo #################
- echo.
- set /p s=choose:
- if %s% equ 1 goto a
- if %s% equ 2 goto b
- if %s% equ 3 goto end
- echo error! input again!
- pause>null
- cls
- goto 0
- :a
- echo how are you
- pause >null
- goto 0
- :b
- echo nice to see you
- pause>null
- goto 0
- :end
复制代码
|