我正在尝试制作基于文本的批量游戏。但是我刚开始写它时遇到了一个我以前从未遇到过的问题。
:menu
:: the game menu - opens when the game starts
cls
echo This game is still being made -- expermintal
echo Start Screen:
echo [1] View Changes
echo [2] Start Game
echo enter your choice:
set /p startchoice =
if %startchoice%==1 goto changes
if %startchoice%==2 goto startgame
当我输入 1 或 2 时,它显示错误“此时 goto 是意外的”我该如何解决?