To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 946
945  |  947
Subject: 
Re: Error in program
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 1 Feb 2001 03:02:50 GMT
Viewed: 
2080 times
  
Well I am just a newbie to NQC and to the whole Mindstorm experience,
however here is what the compiler says when I try to compile the program
that you submitted.


Line 1: Error: RCX does not support Arrays


I hope that this helps.

Chris




In lugnet.robotics.rcx.nqc, Andi Scharfstein writes:
Hi,
can somebody tell me why this little program doesn't give any output? It
just keeps running and doing nothing...

int Edges[7], CounterLength=0;
task main(){
SetSensor (SENSOR_2, SENSOR_TOUCH);
until(CounterLength == 8){
  Edges[CounterLength] = (CounterLength + 1);
  ++CounterLength;}

  CounterLength = 0;
  until(CounterLength == 8){
  repeat(Edges[CounterLength]){
   PlayTone(440,25);
   Wait(35);}
  PlayTone(220,25);
  Wait(35);
  until(SENSOR_2 == 1);
  ++CounterLength;}}



Message has 1 Reply:
  Re: Error in program
 
Chris Hood wrote: > > Well I am just a newbie to NQC and to the whole Mindstorm experience, > however here is what the compiler says when I try to compile the program > that you submitted. > > > Line 1: Error: RCX does not support Arrays Hi Chris, (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Error in program
 
Hi, can somebody tell me why this little program doesn't give any output? It just keeps running and doing nothing... int Edges[7], CounterLength=0; task main(){ SetSensor (SENSOR_2, SENSOR_TOUCH); until(CounterLength == 8){ Edges[CounterLength] = (...) (24 years ago, 31-Jan-01, to lugnet.robotics.rcx.nqc)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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