Yamiraj
Yamiraj
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
Thank you very much for the help man
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
ValidateInput would just check if the bool is true and within range
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
the conditions for if and while are the same, is there some way i could make this better
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
i feel this is redundant
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
HOWEVER
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
the exception is thrown at my last console writeline, so if i wrote down -1 then the program would accept it because it is a valid integer, just out of range and then it would say out of range
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
I figured it out, my conditions for my if statement were incomplete and the condition itself was for checking that is within range instead of checking that it is out of range
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
so when i type in a string, it does give me the error message within my if statement, but entering anything outside of my index range just gives me another error which again is the out of bounds array
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
actually wait nvm
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
alright so i got a new problem with it
22 replies
CC#
Created by Yamiraj on 5/11/2023 in #help
Learning C#, trying to get a user to input array index and return name stored in that index
bruhh, my bad on missing that out
22 replies