Go Down

Topic: Declare a variable ++ (Read 394 times) previous topic - next topic

Techno7

Ok its a bit dificult for me to explain it, but i will try it:

I need to declar a variable which name is build out of a nromal string and an integer variable:

for example:

int number = 3;
int example // and then their should be 3 = 9;

when you need more details just ask

thanks a lot

dxw00d

Sorry, I don't understand what you mean.

Techno7

Okay np i will try to explain you, i have a for loop in this loop:

for( int i ; i<8; i++){

}

i need a new variable which contains in his name the valour of i, so Exai for example: Exa1, Exa2,...

but i don't know the code for this, when not i will try it again to explain it (i'm not really good in explaining

dxw00d

You can use an array - http://arduino.cc/en/Reference/Array

Techno7

Thanks now it works   XD

Go Up