C语言,用户登录的代码问题
#include "stdio.h"#include "conio.h"
main()
{
char username;
char userpass;
int count=0;
int issuccess=0;
char initname[]={"admin"};
char initpass[]={"1234"};
for (;count<3;count++)
{
gets(username);
gets(userpass);
if(strcmp(username,initname)==0 && strcmp(userpass,initpass)==0)
{
issuccess=1;
break;
if(issuccess==1)
printf("dengluchenggong");
else
printf("denglushibai");
}
}
getch();
}