K
Klaas Vantournhout
Hi, Somehow I can't figure this one out.
I have an integer variable N and this N reflects the amount of nested
for loops. I mean
if N = 1, the I have
for (int i1 = ....) {
<code>
}
if N = 2, I have
for (int i1 = ...)
for (int i2 = ...) {
<code>
}
....
if N = n I must have
for (int i1 = ...)
....
for (int in = ...) {
<code>
}
Is there a way to program this disregarding the value of N?
thanks
I have an integer variable N and this N reflects the amount of nested
for loops. I mean
if N = 1, the I have
for (int i1 = ....) {
<code>
}
if N = 2, I have
for (int i1 = ...)
for (int i2 = ...) {
<code>
}
....
if N = n I must have
for (int i1 = ...)
....
for (int in = ...) {
<code>
}
Is there a way to program this disregarding the value of N?
thanks