Hey guys,
Just need a new set of eyes on this code - something is up when the Username or Password is incorrect - the console crashes completely instead of giving error and looping back around. If the name/pass is correct, it works just fine - should be relatively simple, I think I've just been looking at code too much lately and have something out of place. Any tips on how to improve are more than welcome but, even if you have a better idea, I'd still love to know what's causing the issue. Thanks!
If there is no match for login and password, then success will never become true, and after several iteration index i will go out of bounds and you will access some random memory.