本文介绍了Notpad Coding帮助,总是关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止的代码





Code so far


@echo off
title GOBLIN GAME
color 02
set /a Money="200"

echo Which sword would you like to buy...
pause>nul

set /p pickasword=
if %pickasword% == WoodenSword goto Wooden Sword

:Wooden Sword
cls
if %Money% gtr 99 goto woodensword1
else goto swordshop


:woodensword1
echo.
echo You have bought a new sword

pause>nul



除非您输入WoodenSword后立即关闭


Except after you type in WoodenSword it immediately closes

推荐答案

@echo off
title GOBLIN GAME
color 02
set /a Money="200"

:swordshop

echo You have






希望这会有所帮助,

Fredrik



Hope this helps,
Fredrik


这篇关于Notpad Coding帮助,总是关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 11:33