+ 1
I have some problems with this code.
what's wrong with it? go ahead and test it. when you put a name with more than one characters it doesnt even ask for password https://code.sololearn.com/ce2tiIRA5lrH/?ref=app
11 Réponses
+ 3
So you must to follow it, coding is really amazing. You can code a login verification like your, website, forms, shopping, database, calculator and whatever you want. Obviously we need to learn and practice day by day
+ 4
char is that, one character so any other chars will be truncated
+ 4
I suggest you check courses in SL and practice
+ 3
userpasswd=passwd
you are doing an assigment but you want to compare, so you must to write
userpasswd==passwd
+ 3
No problem Dionisis for that is the community ;-)
+ 2
Change
char username;
by
string username;
+ 1
thank you very much. what about the if statment. whatever number you write shows access granded
+ 1
oohh now i get it! thanks for helping dude!
+ 1
thats what i do! my second day in all that programming stuff and i really like it!
+ 1
and the community here is the best a newbie programmer can have
+ 1
that's what i'm going to do !! thanks again