FusedQyou
FusedQyou
CC#
Created by Archion on 11/21/2024 in #help
C# homework
What is H? What is P? What is Mp??
42 replies
CC#
Created by Archion on 11/21/2024 in #help
C# homework
How is anybody supposed to read this
42 replies
CC#
Created by Archion on 11/21/2024 in #help
C# homework
Please use proper naming for your variable names :oh:
42 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Yes that is definitely a good case where you do this
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
If your switch cases does not handle any case, then default is used if it exists
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
You have cases for different keyboard keys in this case
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Now that you have done this, perhaps you want to try adding some methods to handle your cases?
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I know there is a different switch type wher eit does matter, but the general rule is that it's at the bottom
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I'm not sure if it matters here what the order is
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
The default case handles any case that is not handled by one of the cases above
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Yes, this is exactly how you do this
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Again, with a List this would not be required but an array's size is not directly corresponding to how many items it has, so we must track this ourselves
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
You don't use index there because it already has a purpose, and you can't change the purpose because it holds data about how big your array is
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
i in this case is purely for the for-loop to loop through the array. It increments until it is the same value as index, in which case it ends because the array would no longer have values
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
You use it to indicate where you place the next username/password, but you can also use it to indicate in the for-loop where it ends because there are no more usenames
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
index is your own variable and the only purpose is to indicate to the code where your array ends
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Well, I hope the program makes sense, especially since you wrote it all yourself
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Honestly, in your case you make mistakes because you (probably) never programmed before, have you?
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
It took me years to learn C#, then years to learn proper C#
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Like with any language you just have to keep making things and keep learning
211 replies