对于下一个问题 [英] for next problem

查看:80
本文介绍了对于下一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想做一些计算,比如

(t1和t2已知)


for i = t1到t2

为j = t1到t2

.....

.....

代表p = t1到t2

代表q = t1到t2

一些行动

next

next

.......

next

next


但我只知道这个号码使用变量iTimes进行下一次运行时

这个问题是否有解决方案?

感谢您的回复

Hi,
I want to do some calculation like
( t1 and t2 are known)

for i = t1 to t2
for j = t1 to t2
.....
.....
for p = t1 to t2
for q = t1 to t2
some actions
next
next
.......
next
next

but i know only the number for next in run time with the variable iTimes
Is there a solution for this problem?
Thanks for any response

推荐答案

" andreas" < a ***** @ pandora.beschrieb:
"andreas" <an*****@pandora.beschrieb:

我想做一些计算,比如

(已知t1和t2 )


for i = t1 to t2

for j = t1 to t2

.....

.....

for p = t1 to t2

for q = t1 to t2

一些行动
next

next

.......

next

next


但我只知道变量iTimes的运行时间中的下一个数字

这个问题是否有解决方案?
I want to do some calculation like
( t1 and t2 are known)

for i = t1 to t2
for j = t1 to t2
.....
.....
for p = t1 to t2
for q = t1 to t2
some actions
next
next
.......
next
next

but i know only the number for next in run time with the variable iTimes
Is there a solution for this problem?



你想要iTimes嵌套''For ... To''循环?


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http:// classicvb.org/petition/>

You want iTimes nested ''For...To'' loops?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


这些行为是什么?它们如何依赖循环变量? IMO这是主要的问题......


对于exaple你可以只使用一个循环(做4次10次循环将是

和做40次循环相同)


-

Patrice


"安德烈亚斯" < a ***** @pandora.beaécritdansle message de news:

wI ********************** *@phobos.telenet-ops.be ...
And those actions are ? How do they depend on loop variables ? IMO this is
the main problem...

For exaple you could just use a single loop (doing 4 times 10 loops would be
the same than doing a loop 40 times)

--
Patrice

"andreas" <an*****@pandora.bea écrit dans le message de news:
wI***********************@phobos.telenet-ops.be...



我想做一些计算,比如

(t1和t2已知)


for i = t1 to t2

for j = t1 to t2

.....

.....

for p = t1 to t2

for q = t1 to t2

一些行动

next

next

.......

next

next


但是我只知道变量iTimes运行时的下一个数字

有这个问题的解决方案吗?

感谢您的回复

Hi,
I want to do some calculation like
( t1 and t2 are known)

for i = t1 to t2
for j = t1 to t2
.....
.....
for p = t1 to t2
for q = t1 to t2
some actions
next
next
.......
next
next

but i know only the number for next in run time with the variable iTimes
Is there a solution for this problem?
Thanks for any response



是的,Herfried


" Herfried K. Wagner [MVP]&qu OT; < hi *************** @ gmx.atwrote in message

新闻:#2 ************** @ TK2MSFTNGP03.phx.gbl ...
yes, Herfried

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:#2**************@TK2MSFTNGP03.phx.gbl...

" andreas" < a ***** @ pandora.beschrieb:
"andreas" <an*****@pandora.beschrieb:

我想做一些计算,比如

(已知t1和t2 )


for i = t1 to t2

for j = t1 to t2

.....

.....

for p = t1 to t2

for q = t1 to t2

一些行动
next

next

.......

next

next


但我只知道变量iTimes的运行时间中的下一个数字

这个问题是否有解决方案?
I want to do some calculation like
( t1 and t2 are known)

for i = t1 to t2
for j = t1 to t2
.....
.....
for p = t1 to t2
for q = t1 to t2
some actions
next
next
.......
next
next

but i know only the number for next in run time with the variable iTimes
Is there a solution for this problem?



你想要iTimes嵌套''For ... To''循环?


-

MS Herfried K. Wagner

MVP< URL:http://dotnet.mvps.org/>

VB< URL:http:// classicvb.org/petition/>


You want iTimes nested ''For...To'' loops?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>



这篇关于对于下一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆