问题到底出在哪里了呢
#include <stdio.h>double pingjunfen, zuigao, zuidi;
double fenshu(double b);
void main()
{
printf("请输入学生成绩: \n");
int a;
int i;
for(i=0; i < 10; i++)
{
scanf("%d",&a);
}
for(i=0; i < 10; i++)
{
printf("%d",a);
}
}
--------------------Configuration: textp - Win32 Debug--------------------
Compiling...
text.c
F:\C例题\textp\text.c(11) : error C2143: syntax error : missing ';' before 'type'
F:\C例题\textp\text.c(12) : error C2143: syntax error : missing ';' before 'type'
F:\C例题\textp\text.c(14) : error C2065: 'i' : undeclared identifier
F:\C例题\textp\text.c(16) : error C2065: 'a' : undeclared identifier
F:\C例题\textp\text.c(16) : error C2109: subscript requires array or pointer type
F:\C例题\textp\text.c(16) : error C2102: '&' requires l-value
F:\C例题\textp\text.c(21) : error C2109: subscript requires array or pointer type
执行 cl.exe 时出错.
text.obj - 1 error(s), 0 warning(s) #include <stdio.h>
double pingjunfen, zuigao, zuidi;
double fenshu(double b);
void main()
{
int a;
int i;
printf("请输入学生成绩: \n");
for(i=0; i < 10; i++)
{
scanf("%d",&a);
}
for(i=0; i < 10; i++)
{
printf("%d",a);
}
} ba21 发表于 2018-6-5 16:36
为啥复制你的就没事,我也没看改啥东西啊 ba21 发表于 2018-6-5 16:36
明白了 谢谢
页:
[1]