Yukonヌ
Yukonヌ
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
my next assignment is to make a library for books, where user and register/login and look for books and borrow them or add books, using search algorithms and methods. So il probably implement classes/methods here instead.
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
alright cool, what do you mean when you say handle my cases?
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I read that default should always be in the last case, I currently have it in the first case but that doesnt matter right? seems to work either way
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
i also added another case to handle unknown inputs for my menu, using default, is this a good option? https://hatebin.com/qfqcrfynos
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
oh I see, thanks for the explanation ❤️
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I see, yea it takes time to get decent at it, that much I understand. It does make sense except for the i variable in the for loop, how is index related to i here? It sounds more logical to me that i should be comparing name and pass to username[index] and password[index] rather than username[i] etc. I dont get how the i variable is connected to the index of my array
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Thanks for the tip, im happy so far, started c# last week, currently studying for webdevelopment and just finished html/css ... gotta say c# feels harder to get a grasp on but I guess in time it will be easier. Cant express how greatful I am that you take your free time to help a newbie like me 😁
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
gotcha, this seemd to do the trick https://hatebin.com/gdnzfznhhv
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
this seems logical to me but does not work lol 😅
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
thanks for all the help, my brain feels like mush i tend to overthink alot... So basically make an if statement in the c case, like if (index < usernames.Length && index < passwords.Length) ?
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
yea exactly, thats what i changed and now it seems to work
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
nvm i added the index=index+1 om the l case, its supposed to be when creating the account obviously, seems to work now, am able to store multiple accounts and use em
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
yes after readline, iv got index = index+1 this should add it to the array right? and in the comparison i compare with i not index. im still not able to store more than the latest username/password.
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
aah my bad, just showed that part of the code. Here's the whole thing https://hatebin.com/frdbaaydcs
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
u mean like this? https://hatebin.com/mmycwwpurb still my for loop is not correct i assume since now nothing seems to get stored, if you just wanna give me some examples im ok with it, il just review it untill i get the hang of things. I feel bad taking so much of your time
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
or do you mean another if statement like this? https://hatebin.com/zrqfkgzuoz
211 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
but you cant put an else statement outside an if statment right? their related, or im understanding this wrong
211 replies