To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 1071
    Two dimensional arrays in NXC —Trevyn Watson
   Hello, I'm trying to use two dimensional arrays in NXC, like this: int onedarray[4]; int twodarray[4][4]; task main() { onedarray[2] = 1; twodarray[2][2] = 1; } I read that the stock firmware doesn't support them, so I got John Hansen's enhanced (...) (17 years ago, 29-Mar-08, to lugnet.robotics.nxt)
   
        RE: Two dimensional arrays in NXC —Dick Swan
     As an alternative, you might want to look at the ROBOTC solution. It fully supports two dimensional arrays. You can download a 30-day evaluation version from www.robotc.net. It's best to use the pre-release version (1.22 or higher) if you'll be (...) (17 years ago, 30-Mar-08, to lugnet.robotics.nxt)
    
         Re: Two dimensional arrays in NXC —Christian Mock
     (...) RobotC is for MS Windows only, isn't it ? Please let me know, if an OSX version is available. Thanks Christian (17 years ago, 31-Mar-08, to lugnet.robotics.nxt)
    
         RE: Two dimensional arrays in NXC —Dick Swan
      Yes. It is currently a Windows only package. There's some, but not a lot, of demand for Mac version. -----Original Message----- From: news-gateway@lugnet.com [mailto:news-gateway...ugnet.com] On Behalf Of Christian Mock Sent: Monday, March 31, 2008 (...) (17 years ago, 1-Apr-08, to lugnet.robotics.nxt)
     
          Re: Two dimensional arrays in NXC —Brian Davis
      (...) OK, I'll publicly make my demand louder. OSX is a great enviroment for educators... oh heck with it, I want it for me, not my students :) (17 years ago, 2-Apr-08, to lugnet.robotics.nxt)
    
         Re: Two dimensional arrays in NXC —Roger Glassey
     (...) Hi Christian, If you need 2 dimensional arrays and use OSX, Java is a possible answer. You can download it from http: lejos.sourceforge.net. It supports up to 8 dimensional arrays, the Java math library, multi threading, communications via (...) (17 years ago, 5-Apr-08, to lugnet.robotics.nxt)
    
         Re: Two dimensional arrays in NXC —Christian Mock
     (...) Hi Roger, yes, Java can do the job, but normally I prefer pbLua for all my NXT projects. It is completely operating system independant, you need a terminal only... From time to time, I like to play with NXC, which is available for most os'es (...) (17 years ago, 6-Apr-08, to lugnet.robotics.nxt)
   
        Re: Two dimensional arrays in NXC —John Hansen
   (...) The stock firmware supports multi-dimensional arrays but there is a bug in the replace opcode which makes it impossible to replace an element in an array with more than one dimension. In NXC, due to the way the opcodes work in the standard (...) (17 years ago, 31-Mar-08, to lugnet.robotics.nxt)
   
        Re: Two dimensional arrays in NXC —Trevyn Watson
   (...) Well, don't add the functionality on my account - I've redone my program a bit and now it doesn't need multi-dimensional arrays, and I think it's better this way anyways. Thanks for your help. Trevyn (17 years ago, 2-Apr-08, to lugnet.robotics.nxt)
 

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