To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26582
    Re: NQC programming guide —Steve Lane
   (...) I wouldn't say I was a great programmer either. An array is simply a sequence of memory variables (say 1-10) that can be accessed via their numeric position. x++ If you write x++ in your code and x=1, once used, one will be added to it so it (...) (18 years ago, 5-Dec-06, to lugnet.robotics)
   
        Re: NQC programming guide —linmix
   (...) 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 —Steve Lane
     (...) 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 —Lucio De Re
   (...) 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)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR