我现在收到这些警告,我不知道为什么。我已将警告消息放在它对应的行旁边的代码中。
void removeNewLine (char * userName, int charLenght)
{
int i=0;
do {
if (userName [i]=='/n') //comparison between pointer and integer
{
userName [i]='/0'; //assignment makes integer from pointer w/o cast
}
i++;
} while (i<charLenght);
}