本帖最后由 am873 于 2013-11-20 19:17 编辑
大数文本a.txt每行的数字+b.txt中对应行的数字,结果输出为c.txt
a.txt+b.txt=c.txt
如:
a.txt的内容为:
123456789012345
543210987654321
b.txt的内容为:
36912345678
25454321098
得出的c.txt为:
123456789012345+36912345678=?
543210987654321+25454321098=?
运行以下批处理后,CMD窗口显示“无效数字。数字精确度限为32位。”,输出c.txt的结果为:
123456789012345+36912345678=
123456789012345+25454321098=
543210987654321+36912345678=
543210987654321+25454321098=
该如何修改,谢谢。- @echo off
- (for /f "delims=" %%i in (a.txt) do (
- for /f "delims=" %%j in (b.txt) do (
- set /a m=%%i+%%j
- call echo %%i+%%j=%%m%%
- )
- ))>c.txt
复制代码
|