Search found 12 matches

by penguinplus
26 Aug 2011, 16:06
Forum: Mindstorms Software
Topic: Changing variables in NXC
Replies: 4
Views: 4895

Re: Changing variables in NXC

I try to change a variable in a if statement bot it gives me errors.
by penguinplus
26 Aug 2011, 13:47
Forum: Mindstorms Software
Topic: Changing variables in NXC
Replies: 4
Views: 4895

Changing variables in NXC

I am new to NXC so how do I change a variable? I made the variable that turn = 0 and it is all set up. But how do I change it to another number?
by penguinplus
26 Aug 2011, 13:43
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

Thank you h-g-t. You solved the problem. I probably look really dumb as I didn't know how to do that but it was not shown in the NXC tutorial. Your code worked great. That ends my problem thanks.
by penguinplus
25 Aug 2011, 22:25
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

All it does is count up. goes 0 0 1 2 3 then it says 3.
by penguinplus
25 Aug 2011, 22:03
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

I get this errorImage
by penguinplus
25 Aug 2011, 21:29
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

I still don't get it. Could you add it straight with this code and just find which variable is the biggest in the end? Here is the code. task main() { while(true) { ClearScreen(); //Clear the screen SetSensorLight(IN_3); //Set the light sensor TextOut(0,LCD_LINE1,"The screen works"); //Tes...
by penguinplus
25 Aug 2011, 21:03
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

So how would I use that in my code?
by penguinplus
25 Aug 2011, 19:52
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Re: Finding the biggest number in NXC

So nobody knows how to find the max number out of the variables?
by penguinplus
25 Aug 2011, 19:14
Forum: Mindstorms Software
Topic: Finding the biggest number in NXC
Replies: 13
Views: 14206

Finding the biggest number in NXC

I have 5 variables:

L1
L2
L3
L4
L5

And they all start out a 0. At the end of the program they are different numbers. I need to find the biggest variable at the end. How do I do that? Please help.

-Penguinplus
by penguinplus
18 Nov 2010, 00:00
Forum: Mindstorms Software
Topic: Linux-nxt-programming
Replies: 3
Views: 4412

Linux-nxt-programming

I have two computers. One only runs Xubuntu linux and I tried to install windows xp but it didn't work. I was woundering if there is some way to program the nxt with a gui. Thanks.