Pages: [1]   Go Down
Author Topic: Declare a variable ++  (Read 375 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, I don't understand what you mean.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks now it works   smiley-lol
Logged

Pages: [1]   Go Up
Jump to: