View Single Post
  #8   Spotlight this post!  
Unread 28-01-2010, 21:54
Rizner's Avatar
Rizner Rizner is offline
Registered User
FRC #2425
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Florida
Posts: 75
Rizner has a spectacular aura aboutRizner has a spectacular aura about
Re: Not Knowing Much About Programming

Quote:
Originally Posted by just_wondering View Post
sorry, but what are variables, I really know nothing
variables are words that contain a value. If you have the following things:

Code:
int var1 = 5;

double var2 = 10.0;

string var3 = "hello";

char var4 = 'c';
each of those are a variable. Other variables exist and can be declared or created in the program. I haven't seen much of the code here, but I'm pretty sure Joysticks are created and named (as variables), motors, solenoids, etc are all created and named.

Basically, if you create a name for something that you can create or change values for, use in other equations or declarations, it's a variable. I would suggest looking at beginning programming tutorials for the language you decide to code in and working your way through it.
__________________