0
What's wrong with this code?
I've been trying to make a simple login but I don't understand classes quite good yet and I also wanted to practice functions. The result is this monstrosity here. The program does run in visual studio and I havent tested it here but what I cannot find is why it crashes after I try to log in after a sign up. Probably there's is also like 1000 more mistakes because I got so lost trying to code this. To anyone who decides to check this God have mercy in your soul. Thanks https://code.sololearn.com/c6yB8y5I66t1/?ref=app
5 Respostas
+ 2
Elias Kamakas yes, there were many error but it was not hard to find.. it's stray error means there were special characters pasted into sololearn playground when you copied it from vs... just rewrite code on playground or remove extra space from code.. that's what I did...
Updated code is here for you:
https://code.sololearn.com/cpb1m7rhkTfE/?ref=app
I just checked with below input on sololearn and it works fine...
S a b a b E L a b N
Let me know if you faced issue in different scenarios...
+ 1
Elias Kamakas that's what I had done as per my last comment...I got comment about last N also
as I tested on app, I had to pass all arguments in single go and that's what I did.. for last N in my previous comments as input, I got answer also that under construction..
+ 1
it's not a problem... it happens ... happy that it helped to you..
0
Ketan Lalcheta thanks a lot! The problem now is that I cant login after a sign up and I cannot figure out why.It should work by typing these : S (to sign up)(your username) (your password) (retype usernane and password) E(to exit) L (to login again). However nothing appears after the second log in.
0
Ketan Lalcheta Oh that was that Sabab think. Oh I am an idiot sorry