Welfare



CodePudding user response:
Bosses help small white let me seeCodePudding user response:
Look on welfare (mainly the code is not long) for the sake of
#include
#include
Int main ()
{
Char user [20]={0};
Char pass [20]={0};
Printf (" please enter the user name: \ n ");
The scanf (" % s ", the user);
If ((STRCMP (user, "a")==0) | | (STRCMP (user, "b")==0) | | (STRCMP (user, "c")==0))
{
Printf (" please enter the password: \ n ");
The scanf (" % s ", pass);
If ((STRCMP (user, "a")==0) & amp; & (STRCMP (pass, "111")==0) | |
(STRCMP (user, "b")==0) & amp; & (STRCMP (pass, "222")==0) | |
(STRCMP (user, "c")==0) & amp; & (STRCMP (pass, "333")==0))
Printf (" welcome! \n");
The else
Printf (" password error! \n");
}
The else
{
Printf (" the user does not exist! \n");
return;
}
return 0;
}
CodePudding user response:
Emmm + 1CodePudding user response:
So soon finished, came lateCodePudding user response:
The forehead! This topic, ok this is not a medical professional BBS