variable in FOR cycle

Hello,

Does anyone know how to change the cycle variable name.

I need to load data into different variables needed

String variable1= “”;
String variable2= “”;
String variable3= “”;
etc …

I would like there to enter the cycle … something like this …

for (int i = 1; i <10; i ++) {
String variable (i) = “”;
}

It's been compiled - there is no concept of a variable name after compilation.

Do you need an array?

I tried ARRAY and FOR. does not even matter to me and now I do not know at all what to do.

Are you saying something like

String variable [10];
...
...
for (int i = 0; i < 10; i++) {
  variable [i] = "";
}

doesn’t work for you?

Why not?

I tried and I do not go about it .... I need a break.


if (temp0 > temp_max0) {
temp_max0 = temp0;
}

myGLCD.print (temp_max0, 200, 200, 180);

I need to repeat 5x for temp 0-4

Yes, an array is certainly what you want.

. I need a break

Here, I've got this one spare from a switch/case I decided to allow to fall-throughbreak;

thanks hehehe