模拟登陆系统的问题
怎么就算输入账号密码正确了也跳不出循环的呢?新手,蛋疼中,求高手帮忙看下#include<stdio.h>
#include<conio.h>
main()
{
char *a="zh13544539220",*b="zh123456",*acc="0",*pw="0";
int i=0,x,y;
void window1();
clrscr();
window1();
while(*acc!=*a&&*pw!=*b)
{
x=25;
y=6;
gotoxy(x,y);
scanf("%s",&acc);
y+=2;
x+=2;
gotoxy(x,y);
scanf("%s",&pw);
y+=4;
gotoxy(x,y);
printf("Please input the right Acc&Password!");
getch();
clrscr();
window1();
}
printf("\nEnter!");
getch();
}
void window1()
{
int i;
printf("\n\n\t\t\tManger System!\n\n");
printf("\t\t===============================\n");
printf("\t\t|AccNum: |\n");
printf("\t\t| |\n");
printf("\t\t|Password: |\n");
printf("\t\t| |\n");
printf("\t\t| |\n");
printf("\t\t===============================\n");
}