- @echo off
- set /p str=
- echo. %str%
- echo *****************************
- if %str:~0,1% neq 0 (echo This is not a numeral ---NaN & echo bye & goto:eof)
- echo orginal str---%str%
-
- :one
- if %str:~0,1% equ 0 (set str=%str:~1% )
- if %str:~0,1% equ 0 goto one
-
-
- :end
- echo string after delete zero---- %str%
复制代码
[ 本帖最后由 myzwd 于 2009-2-28 17:31 编辑 ] |