初学者,求帮忙!
(1)void encryptChar()
{ int i,j;
for(i=0;i<maxline;i++)
for(j=0;j<strlen(xx[i]);j++)
if(xx[i][j]*11%256<=32||xx[i][j]*11%256>='0'&&xx[i][j]*11%256<='9') continue;
else xx[i][j]=xx[i][j]*11%256;
}
(2)
void encryptChar()
{ int i,j;
char c;
for(i=0;i<maxline;i++)
for(j=0;j<strlen(xx[i]);j++)
{
c=xx[i][j]*11%256;
if(c<=32||(c>='0'&&c<='9')) continue;
else xx[i][j]=c;
}
}
上面两段程序,为什么执行结果不一样啊?