+ 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

29th Sep 2017, 12:55 AM
Dionisis Nklp
Dionisis Nklp - avatar
11 odpowiedzi
+ 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
29th Sep 2017, 1:20 AM
Daniel
Daniel - avatar
+ 4
char is that, one character so any other chars will be truncated
29th Sep 2017, 1:04 AM
Daniel
Daniel - avatar
+ 4
I suggest you check courses in SL and practice
29th Sep 2017, 1:13 AM
Daniel
Daniel - avatar
+ 3
userpasswd=passwd you are doing an assigment but you want to compare, so you must to write userpasswd==passwd
29th Sep 2017, 1:10 AM
Daniel
Daniel - avatar
+ 3
No problem Dionisis for that is the community ;-)
29th Sep 2017, 1:12 AM
Daniel
Daniel - avatar
+ 2
Change char username; by string username;
29th Sep 2017, 1:04 AM
Daniel
Daniel - avatar
+ 1
thank you very much. what about the if statment. whatever number you write shows access granded
29th Sep 2017, 1:07 AM
Dionisis Nklp
Dionisis Nklp - avatar
+ 1
oohh now i get it! thanks for helping dude!
29th Sep 2017, 1:11 AM
Dionisis Nklp
Dionisis Nklp - avatar
+ 1
thats what i do! my second day in all that programming stuff and i really like it!
29th Sep 2017, 1:17 AM
Dionisis Nklp
Dionisis Nklp - avatar
+ 1
and the community here is the best a newbie programmer can have
29th Sep 2017, 1:17 AM
Dionisis Nklp
Dionisis Nklp - avatar
+ 1
that's what i'm going to do !! thanks again
29th Sep 2017, 1:22 AM
Dionisis Nklp
Dionisis Nklp - avatar