Hi!
Got a problem, and I don't know the cause >.<
I want to assign all numbers from one equally sized array to another.
So far so easy, here the code I want to use that won't work, I don't get any output from the Serial port... not even the first gibberish line:
int Qarray[36] = {
0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
};
int Rarray[36] = {
9,8,7,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,
};
int z;
void setup(){
Serial.begin(9600);
}
void loop(){
for (z = 0; z = 35; z++){
Qarray[z] = Rarray[z];
}
Serial.println(Qarray[1]);
}
If I'm assigning it like this everything works:
Qarray[1] = Rarray[1];
Qarray[2] = Rarray[2];
....
Regards,
Jazzar
edit:
ok z should only run to 35 since the size of the array is 36 but last digit is number 35, anyway didn't help the least