| | RE: Two dimensional arrays in NXC
|
|
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
|
|
(...) 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
|
|
(...) 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
|
|
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)
|
|
| | Two dimensional arrays in NXC
|
|
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)
|