数组里面放字符怎么放,,,,
#include<stdio.h>int main()
{
char c[5];
char a[10]={"壹","贰","叁","肆","伍","陆","柒","捌","玖"};
int i;
gets(c);
for(i=0;i<5;i++)
{
if(c[i]=='\0')
break;
}
if(i=1)
{
}
}
我这样一打就16个错误 感觉是声明a数组那里错了。,我不知道哪里错了!求大神解释下,是不是缺了什么头文件还是我声明方法不对?