Greatest Host
Greatest Host
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
? I don't understand, apologies
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Thank you\
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
What is the difference between a foreach loop and a for? This is a dumb question, but I havent used a for/while loop yet
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
And I fixed the issue! Honestly thank you for reminding me of the debug tool, I had no idea what it did and i was kind of afraid of it.
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ 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
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
NEVERMIND Got it working again, the debug selection was on the wrong thing
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
No description
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
OH, i got it working I had to mess with the explorer
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
wait im an idiot I didnt open the program.cs file, but i cant even find it
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
No description
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Ah, alright!
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Can i directly port the code, or should I be doing something special instead?
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Closed the integrated terminal, and it still does it I think I have vs installed, let me see if i can port over the code there
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
Alright, I was using Vs code bc the Microsoft course i was following used it, but I definitely will
60 replies
CC#
Created by Greatest Host on 11/2/2023 in #help
❔ Having issues placing a set of Console.WriteLine statements in the correct spot
ill do that in a sec
60 replies