I want to execute following code, but it doesn't really apply what's within the for-statement - meaning: the switch-statement is totally being left out. Does anybody have an idea what I'm doing wrong? Thank you.
I see. Well, maybe I'm misunderstanding the for-statement, then?
1 2 3 4 5
for(
int i = month; // Here's the initialization of the counter variable i. i equals month, = 3.
i == months3; // Here's the condition part.. I basically tell the for-statement to loop until i equals months3, meaning the loop will stop when i(3) equals months3(7).
i++; // Here's what happens to the counter variable. It's being incremented for each loop that takes place. So i(3) will become months3(7) in 4 loops ...
)
I'm not sure if the problem lies there? I believe I've met the conditions correctly, how else would I tell the loop to loop until i(3) equals months3(7)?
I fear it's the switch-statement that doesn't go off, since it doesn't actually take i and do something with it.