Help with VARIABLES
Posted: Wed Sep 21, 2011 9:56 pm
Hey all!
I just need some help with variables.I have been going through other posts and tutorials but for some reason I'm not understanding how variables work and what their main purpose is.
I know that u can choose to declare one in the global code or to just wright
"Int myVar;"
If someone can please explain me a short way of declaring one.
Also I'd like to know why is there variables like Float or Double when you can just use Int .
One last thing. I've tried the var in global code.
char myWord[255]="Hello people";
And then it shows me a char * error popup..I obviously don't understand these things but I realy need to learn them.
Thanx
I just need some help with variables.I have been going through other posts and tutorials but for some reason I'm not understanding how variables work and what their main purpose is.
I know that u can choose to declare one in the global code or to just wright
"Int myVar;"
If someone can please explain me a short way of declaring one.
Also I'd like to know why is there variables like Float or Double when you can just use Int .
One last thing. I've tried the var in global code.
char myWord[255]="Hello people";
And then it shows me a char * error popup..I obviously don't understand these things but I realy need to learn them.
Thanx