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 / *45658 (-5)
  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 (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
 
  Re: NQC programming guide
 
(...) You'll know when you need it, probably. (...) It's a style thing. (...) There are a number of 'Beginner's Guide to C' style books, buy one. :-) (19 years ago, 5-Dec-06, to lugnet.robotics)
 
  Re: NQC programming guide
 
I think you need to learn to program in text-based languages in general, first. Since NQC stands for "Not Quite C," you should learn the basics of programming in C or C++. (URL) sure someone will come in here and decry that approach and tell you to (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
 
  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.) (...) (19 years ago, 5-Dec-06, to lugnet.robotics)
 
  Re: NQC programming guide
 
(...) 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 (...) (19 years ago, 5-Dec-06, to lugnet.robotics)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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