| | Re: NQC programming guide
|
| (...) So why use an array with say 5 values and not 5 variables? (...) so it's always +1, not like my pocket calculator which will keep adding the original value of x if I use a double + (5++ =10, 15, 20, etc.) (...) (18 years ago, 5-Dec-06, to lugnet.robotics)
| | | | Re: NQC programming guide
|
| (...) If you want to perform the same operation (or sum) on multiple variables, you can use a loop. As long as you use the same variable that controls the loop to control the array, then each successive iteration through the loop will perform the (...) (18 years ago, 5-Dec-06, to lugnet.robotics)
| | | | Re: NQC programming guide
|
| (...) Because there is an additional relationship established between the array elements, namely that of succession. Five variable names would not have such a property. Now go and read a book on computer programming, please. ++L (18 years ago, 6-Dec-06, to lugnet.robotics)
| |