Hello, I've having problems with the string class.In the code below i want to create an array of strings , 7 in total at line 19. I then want to populate each of the seven arrays with a string for each day of the week(I've only put "Sunday" in for now). There are no compiler errors but i can't 'watch' the array in the debugger. Just isn't visible when back in main(). Is the string 'Sunday' being stored at all?
sorry i probably wasn't very clear, i didn't want to use the offsetday function until later. i just want to store the days of the week into an array of strings and not actually input them as part of the program from the user.
Is the declaration days[7] creating an array of 7 strings , such that i can then do the following
days[0] = "unused"
days[1] = "Sunday"
days[2] = "Monday" etc.
or does it simply create one array 7 characters long?. Or am i entering the text incorrectly?