Last edited on
What operating system are you using?
Please use code tags when posting code.
windows 7. I'm not sure what code tags are. Sorry.
You are trying to go beyond the end of the array. (j<6) would imply up to j=5. However,
arrdays[5] doesn't exist, since array indices count from zero.
Code tags are the first item on the format menu - you can select your code in the post and apply them (retrospectively by editing if necessary).
Initialise j as 0 (not 1).
The while statement should have 5, not 6. i.e.
while (j < 5) {
wow, my tutor didn't even catch that. Thank you for your help!