Clean Code and functions

Can anyone please review my code and tell me how i can improve upon it? Like adding functions, whitespace etc. Any help is appreciated!


My code: http://codepad.org/uZLFFHH6

Thanks again!
closed account (48T7M4Gy)
Why do you test login and then proceed to say you're not registered? Has anyone ever logged in?
I would start by fixing the compiler warnings:

1
2
3
4
5
6
7
8
9
main.cpp||In function ‘int main()’:|
main.cpp|78|warning: declaration of ‘username2’ shadows a previous local [-Wshadow]|
main.cpp|65|note: shadowed declaration is here|
main.cpp|82|warning: declaration of ‘password2’ shadows a previous local [-Wshadow]|
main.cpp|69|note: shadowed declaration is here|
main.cpp|148|warning: declaration of ‘username2’ shadows a previous local [-Wshadow]|
main.cpp|136|note: shadowed declaration is here|
main.cpp|152|warning: declaration of ‘password2’ shadows a previous local [-Wshadow]|
main.cpp|140|note: shadowed declaration is here|
Topic archived. No new replies allowed.