Greatest Host
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
I was doing some research on traversing arrays with for loops
I should make the for loop initialize the currentDayCounter, and then make the condition check if currentDayCounter is the length of the array?
So that it does something on each day, and allows me to print the day name
60 replies
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Oh, I see what you mean
Another issue I had is that I dont know how to make the for loop interact with the array (Not both, just one at all)
That is why I used the foreach approach first, so I am unsure how to use the for loop
60 replies
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
I am having difficulties applying the "for loop" and connecting it to both the int array and string array
How would one connect the two? as in, I dont know how to switch the index for both arrays every time it loops...
60 replies
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
I have another question which might be completely irrelevant but its still important
Is it possible for me to sync the two Week related arrays in a nested foreach loop, so that I can print the day? Right now, since the clock system is working on a numerical counter, I dont know how to add the string variant of the array without doing a completely separate foreach loop (or, is that what I should do?)
60 replies
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
I found the issue!!
The initial Console.Clear is deleting everything AFTER it gets printed because once it reaches the end, it skips over to the next day
The issue is not in the Console.WriteLine, but in the positioning of my keypress snippet. That is the one thing stopping the foreach loop each day, and because its misplaced its looping at the wrong point
60 replies
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
...I now see why environment.exit is bad
I cant even see why my baby dies before the program closes, i was doing everything on the command shell so i never realized
60 replies