View unanswered posts | View active topics It is currently Wed Dec 17, 2014 5:32 pm






Reply to topic  [ 2 posts ] 
Arrays? How should the syntax be? 
Author Message
Rookie

Joined: Tue Apr 24, 2012 7:52 pm
Posts: 3
Post Arrays? How should the syntax be?
im trying to use arrays to save joystick moves using easyc and some user codes added.

for my arrays im using

int Joy1[1500];
ect.

i then set a variable n based on time

and i set to my array like this:

Joy1[n] = GetJoystickAnalog;

this should save a # between 127 and -127
i reset n to 0 then in a for loop:

i print to screen:

PrintToScreen ("J1:", Joy[n]);

i get realy weird huge #'s like -102154451 ect.

i think the problem is in the arrays but what am i doing wrong?


Thu Nov 01, 2012 5:01 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 619
Post Re: Arrays? How should the syntax be?
Would you be able to post all of the code (using the
Code:
 
brackets) so we can see exactly what is going on? This will help us debug the program a bit more thoroughly. Thank you in advance.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Nov 12, 2012 12:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.