xu290780142 当前离线
四级士官
shqf 当前离线
少尉
@echo off set /p first=请给出首字母: set letters=abcdefghijklmnopqrstuvwxyz call echo %%letters:*%first%=%% pause复制代码
评分人数
TOP
terse 当前离线
中将
@echo off set /p f=请给出首字母: for /f "tokens=1* delims=%f%" %%i in (" a b c d e f g h i j k l m n o p q r s t u v w x y z ") do set "str=%f%%%j" echo %str: =% echo.&pause复制代码
原帖由 zqz0012005 于 2008-10-26 00:16 发表 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@echo off setlocal enabledelayedexpansion set "letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ" set /p first=请给出首字母: for /l %%a in (0 1 25) do ( if not defined flag ...
zqz0012005 (smile)当前离线
假装是个高手
荣誉版主
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@echo off setlocal enabledelayedexpansion set "letters=ABCDEFGHIJKLMNOPQRSTUVWXYZ" set /p first=请给出首字母: for /l %%a in (0 1 25) do ( if not defined flag (if /i "!letters:~%%a,1!"=="%first%" set flag=1&set /p=!letters:~%%a,1! <nul) else set /p=!letters:~%%a,1! <nul ) echo.&pause复制代码
batman 当前离线
考官
@echo off&setlocal enabledelayedexpansion for %%i in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do set /a n+=1&set "_!n!=%%i" for /l %%i in (10,1,26) do echo !_%%i! pause>nul复制代码