26

Re: To quit two cycles in With

Siemargl wrote:

to close a subject of useless flood. Here Dijkstra's original textbook
https://www.ozon.ru/context/detail/id/139232156/

How it closes a question? The methodology of software development since 75th year essentially enough exchanged, even in a lift-off from language and a platform, much from earlier described not actually and even is harmful.

27

Re: To quit two cycles in With

Siemargl wrote:

to close a subject of useless flood. Here Dijkstra's original textbook
https://www.ozon.ru/context/detail/id/139232156/

This book both correct and good.
But it not the textbook .
In that sense in what the textbook should more or less systematically
To uncover a question and to learn to its usage.
The given book - the collection of articles independent authors with speculation on a subject.
I do not have now it near at hand.
But, if does not change storage, composers from the very beginning did "syllogism"
- Simply removed names of authors from titles of articles and presented result as the uniform text.

28

Re: To quit two cycles in With

Siemargl wrote:

...
plural reset is forbidden it is not recommended from function, instead of from the unit.

Yes, , in this phrase a certain content, worthy the independent torn expression is dug.
If the spirit does not dissipate, maybe, in the evening  to express.
:-Q

29

Re: To quit two cycles in With

jenya7 wrote:

As it is beautiful to me to quit two cycles? Without condition2.

for (i=0; i <100; i ++)
{
for (j=0; j <100; j ++)
{
if (condition1)
{
condition2 = 1;
break;
}
if (condition2)
break;
}
}

The possible decision:

outer:
for (i=0; i <100; i ++)
{
for (j=0; j <100; j ++)
{
if (condition1)
{
break outer;
}
}
}

Yours faithfully, Valentine

30

Re: To quit two cycles in With

I generally would carry out these two cycles in procedure and used return for an output.

31

Re: To quit two cycles in With

Dimitry Sibiryakov wrote:

I generally would carry out these two cycles in procedure and used return for an output.

Not. It not . It is necessary a flag  in a cycle, or to tear templates through goto:-D

32

Re: To quit two cycles in With

Why only two cycles?
Let's solve the task for n cycles. And output conditions - arbitrary.
Go-go!

33

Re: To quit two cycles in With

Valentin Kolesnikov wrote:

the Possible decision:

outer:
for (i=0; i <100; i ++)
{
for (j=0; j <100; j ++)
{
if (condition1)
{
break outer;
}
}
}

Yours faithfully, Valentine

And is what language?

34

Re: To quit two cycles in With

i=j=condition=0;
while (i <100 &&! condition)
{
....
while (j <100 &&! condition)
{
....
if (something there went not so)
condition=1;
j ++;
}
i ++;
}

35

Re: To quit two cycles in With

for (int s = 0; i <100 * 100; s ++) {
int i = s / 100;
int j = s % 100;
//..... processing body with i, j
if (condition (i, j)) {
break;
}
}

36

Re: To quit two cycles in With

mayton wrote:

for (int s = 0;>>> i <<<<100 * 100; s ++) {

Goes in cycles:-D

37

Re: To quit two cycles in With

Yes. . Not test silt.

38

Re: To quit two cycles in With

i=j=0;
for (; ;) {
//..... processing body with i, j
j ++;
if (j == 100) {
j = 0;
i ++;
if (i == 100) break;
}
};

39

Re: To quit two cycles in With

To what all these perversions?

40

Re: To quit two cycles in With

wrote:

To what all these perversions?

I remember, just when the book on Si in the childhood got, here with the same hogwash toiled smile))

41

Re: To quit two cycles in With

Isokerf, reminded  pwdgen.
http://www.sql.ru/forum/1126611-1/tyapnichnyy-pwdgen
In initial setting the utility which was necessary to me generates character combinations
For the arbitrary dial-ups .   on the contrary. Not  and the generator.

$ pwdgen (Qwe|Asd|Zxc) 19\d {2} [!@#$%^&* ()]

The given expression should generate system from 3 nested loops where
The first cycle goes on prefixes  expressions {"Qwe", "Asd", "Zxc"};
The second cycle on all dates from 1900 and so on.
But I and did not implement that that wanted. Simply postponed. There were more interesting affairs.

42

Re: To quit two cycles in With

mayton;
https://onlinestringtools.com/generate- … from-regex

43

Re: To quit two cycles in With

This link is not necessary to me.

44

Re: To quit two cycles in With

mayton;
The link can and is not necessary, and idea cool, I will remember.