Yamiraj
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
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
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