#include <stdio.h>
#include <string.h>
int main(void)
{
char alpha[26] = '0', nl;
while (alpha != '0'){
scanf("%c", &alpha);
scanf("%c", &nl);
printf("the character is %c\n", alpha);
}
}
我尝试编译时遇到无效的初始化程序错误。错误在char alpha[26] = '0', nl;
行内。
谢谢你的帮助!