【发布时间】:2012-12-29 01:19:21
【问题描述】:
我正在尝试制作基于文本的批量游戏。但是刚开始写就遇到了一个从来没有遇到过的问题。
: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 is unexpected at this time”我该如何解决?
【问题讨论】:
标签: goto