|
TLang
初级用户
  Alpha
积分 46
发帖 21
注册 2007-1-27
状态 离线
|
『第 16 楼』:
关于+-的算法
使用 LLM 解释/回答一下
关于+-的算法:
以前做过这样的,但是,我们继续用杯子思考,就算两种液体不相容,但是要把两杯里面的液体倒入一个杯子,那么只能至多半杯水(基于安全考虑的上限,不要说一杯只剩底,一杯将满的情况),否则会由于溢出而产生错误!!
About the algorithm of +-:
I did this before, but, let's continue to think with cups. Even if the two liquids are incompatible, but to pour the liquids from the two cups into one cup, then you can only pour at most half a cup (based on the upper limit for safety consideration, don't say the case where one cup has only the bottom and the other is almost full), otherwise an error will occur due to overflow!!
|

Impossible's Nothing! |
|
2007-1-27 23:40 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2007-1-25 23:03:
lxmxn兄用call %%var1%%实际没有展开, 和!var!一样, 是变量延迟的另一种用法. 因此变量交换也无法实现.
我所要表达的意思正是这种不成立的例子。
Originally posted by pengfei at 2007-1-25 23:03:
The use of call %%var1%% by user lxmxn actually does not expand, which is another usage of variable delay like!var!. Therefore, variable exchange cannot be achieved.
What I want to express is exactly this kind of invalid example.
|
|
2007-1-28 11:47 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
额,我说点题外话,这个东西强烈建议加入wiki里!
Uh, let me say something off-topic. This thing is strongly recommended to be added to the wiki!
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2007-1-29 00:42 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
est兄说的对, 放到Wiki不错的想法.
lxmxn兄指出的变量延迟, 脚本中进行变量替换中要防止使用延迟(如call迟延和!var!迟延).
Brother est is right, the idea of putting it on Wiki is good. Brother lxmxn pointed out the variable delay. In variable replacement in the script, prevent using delay (such as call delay and!var! delay).
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2007-1-29 02:19 |
|
|
zljzsm
初级用户
 
积分 29
发帖 29
注册 2008-5-7
状态 离线
|
|
2008-5-11 09:21 |
|
|
maky1117
初级用户
 
积分 24
发帖 11
注册 2008-11-22
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
呵呵很巧妙地利用批处理中预处理的原理,这也是解释器和编译器的区别之一,C和C++就不得不用临时变量来完成这个交换
Hehe, it cleverly uses the principle of preprocessing in batch processing. This is also one of the differences between interpreters and compilers. C and C++ have to use temporary variables to complete this exchange.
|
|
2008-12-2 12:12 |
|