[C语言]expected identifier or ‘(’ before ‘{’ token {
#include <stdio.h>
#include <string.h>
{ /*报错行:expected identifier or ‘(’ before ‘{’ token */
char i[6];
scanf("%s",i);
int c = strlen(i);
printf("%d",c);
int a = 0;
while(a!=c)
{
if(a!=0)
printf(" ");
printf("%c",i[a]);
a++;
}
return 0;
}
作用是想让输入的字符倒叙输出.
环境:linux 3.10.0-693.11.6.el7.x86_64 gcc 4.8.5 20150623 (Red Hat 4.8.5-16)
...全文


其它技术问题
