创建一个数组,输出26个字母失败.
#include <stdio.h>#include <stdlib.h>
int main(void)
{
char ch[26] = {0};
char a = 'a';
while (a != 'z');
{
a++;
printf("%c\n", ch[a]);
}
system("pause");
return 0;
}
环境为VS2015,求大神解答一下为什么输出为空.
2016-11-08 10:49
2016-11-08 14:43
2016-11-08 14:43