I'm having a little problem regarding this log-in program.
#define p printf
#define s scanf
p("\nEnter your username: ");
p("\n\nEnter your password: ");
if(user=="abel" && pass=="pass")
p("\nW E L C O M E !!");
Even if I enter the correct username (user) and password(pass), it would still goes directly to the else statement. Logic error, or am I missing something.
9 Months Ago
Related Article:Very simple problem :/
is a solved C discussion thread by jaymayne that has 2 replies, was last updated 1 year ago and has been tagged with the keywords: count, simple.