Articles on operations in a loop.
« Thread started on: Jun 7th, 2013, 12:22am »
Single FOR loop, all you can do inside. You think not much? But it usually takes whole lection to tell to students! Here's more or less that lection: Operations in a loop (If you are experienced user, you may find that you already know all that. But at least you'll have a place to link to in questions like "How am I to calculate sum (average, min/max) in the loop?" (or in an array))
Another article deals with this particular selection Quote:
...problem: Imagine you have a choosing program, likely involving big (lengthy) search. You are interested in picking just one of “best” solutions; being “best” amounts to having maximum of some criteria – a single number. However, beforehand you have no idea what number would it be; more, you have no idea if it would be single solution with maximum criteria or hundreds of them. But in case you have several of them, you think it would be nice to pick one of them at random – I mean, with equal probability. (In case you program some game ...)
Q: "And if I took your codes and compile them, and sell them for a profit"? A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do. (enjoying JB 1.01 on WinXP, netbook and desktop)