Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple question concerning arrays (C-like language)
#1
My problem is probably too simple for words, but I can't figure out what I am doing wrong. I am currently programming in NXC (Not Exactly C) for a LEGO mindstorm robot, and my code is supposed to have the robot decide autonomously wether or not it is standing upright. This by means of comparing sensor values stored in an array. Sadly, it hasn't even come close to that point, with errors all over the place and now a runtime error ('file error' when running the program, probably caused by indexing values in nonexistant arrays - that's what googling told me).

My code:
 Spoiler

Help me please. Help will be appreciated.
Reply


Messages In This Thread
Simple question concerning arrays (C-like language) - by prozard - 2012-02-29, 01:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)