Go Down

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


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


Sorry, I don't understand what you mean.


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


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


Thanks now it works   XD

Go Up