0
我的代碼是這樣的:分批如果語句中工作
set /p input = "Enter the number here: "
if %input%==1 goto New
if %input%==2 goto Load
if %input%==3 exit
每當你嘗試的數字輸入一個程序崩潰。它說「此時預計」
我的代碼是這樣的:分批如果語句中工作
set /p input = "Enter the number here: "
if %input%==1 goto New
if %input%==2 goto Load
if %input%==3 exit
每當你嘗試的數字輸入一個程序崩潰。它說「此時預計」
您沒有參數%input%
。但是,你有一個名爲%input<space>%
參數寫您set
命令不帶空格:
set variable=value
例如:
set /p "input=Enter the number here: "