#include <stdio.h>
int i;
float a[10];
for(i=0;i<10;i++)
{
a[i]=11.5+5i;
}
int main()
{
int j;
for(j=0;j<10;j++)
{
printf("%f",a[j]);
}
}
algorithm.c:5:5: error: expected identifier or ‘(’ before ‘for’
for(i=0;i<10;i++)
^
algorithm.c:5:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
for(i=0;i<10;i++)
^
algorithm.c:5:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
for(i=0;i<10;i++)
天涯尽头无女友
相关分类