G+_Dylan Warman Posted March 5, 2014 Share Posted March 5, 2014 Hi I'm trying to make a fake password screen as a console application in c# but I cant work out how to read the users input and have 2 paths for the right input and one for the wrong input any help would be greatly appreciated. ;) Link to comment Share on other sites More sharing options...
G+_Dylan Warman Posted March 5, 2014 Author Share Posted March 5, 2014 Yeah I didn't mean 2 inputs. Thanks for the code help I'll try that when I get back on . Thanks again :) Link to comment Share on other sites More sharing options...
G+_Dean T Posted March 5, 2014 Share Posted March 5, 2014 This was one of the first things I did too. i asked for the user to create a username and then a pass word and used console.readline and defined strings called user and pass. I then had it print welcome and asked for username and password and defined 2 more strings usercheck and passcheck I used an if statement to check they matched both user and pass is (usercheck == user && passcheck == pass) print a success message else print a failed message. Link to comment Share on other sites More sharing options...
G+_Dylan Warman Posted March 5, 2014 Author Share Posted March 5, 2014 Ok yeah cool , Thanks to both of you :) Link to comment Share on other sites More sharing options...
G+_Dylan Warman Posted March 6, 2014 Author Share Posted March 6, 2014 That's really good. Link to comment Share on other sites More sharing options...
G+_Dylan Warman Posted March 6, 2014 Author Share Posted March 6, 2014 I think it's cool that I inspired someone :) Link to comment Share on other sites More sharing options...
Recommended Posts