The operator == in your code does not do what you expect.
You should use std::string in stead of char arrays.
UMM @MiiNiPaa and @keskiverto
Im sorry but i couldnt understand what u said properly .....
can u please rewrite the programme correctly.. THX
username and password are C-strings. C-strings do not support the equality operator ==. Therefore lines 11,13,16 are not valid.
As both
MiNiPaa and
keskiverto suggested, you should use C++ strings.
http://www.cplusplus.com/reference/string/string/
Change lines 4-5:
1 2 3 4
|
#include <string>
...
string username;
string password;
|
Last edited on
@ MiniiPaa
Thanks a lot, sorry for a nooby question....
Bye
@AbstractAnon
Thanks for helping me again, do appreciate ur support...
BYE
Last edited on