88问答网
所有问题
当前搜索:
c语言c2449错误
出现
错误
error
C2449
要怎么改?
答:
c语言
中error
C2449
的意思是: 在文件范围内找到“{”,需把“{”前的“;”删掉;例如: #include <stdio.h>#include <math.h>void root2 (double a,double b,double c) ;{double tmp,d=b*b-4*a*c;if (d>0) {tmp=sqrt(d);printf("x1=%f,x2=%f",(-b+tmp)/(2*a),(-b-tmp)/(2*a))...
出现
错误
error
C2449
: found '{' at file scope (missing function he...
答:
错误分析:函数定义错了,多加了一个分号
!修正:double total_top10(double score[3][10], char name[10][16]) /*不能有分号*/ { ...
error
C2449
: found '{' at file scope (missing function header...
答:
这一句已经说得很清楚了啊,
函数缺少头部,也即是你的max函数体没有头部的函数名
。因为你在第二次定义函数max的时候在后面多加了个分号,结果C就认为第二条int max int x,int y); 是个存在性声明而不是定义的开始。那后面的一对花括号就成了无主游魂,自然会说语法错error C2059: syntax err...
错误
1 error
C2449
: 在文件范围内找到“{”(是否缺少函数头?)
c
:\use...
答:
int main(); 这里多了一个分号,要去掉。score{ 10 }{7}, 改方括号 [10][7]
error
C2449
: found '{' at file scope (missing function header...
答:
发现
错误
在文件范围(失踪的功能?)不是说丢失了大括号,是头文件丢失,无法识别,可能主
程序
里面忘了对函数进行引用声明吧
vc编程时出现error
C2449
: found '{' at file scope (missing function...
答:
//
C2449
.
c
// compile with: /c void __stdcall func(void) {} // OK void __stdcall func(void); // extra semicolon on this line { // C2449 detected here --- 请把代码完整的贴上来,这个
错误
不是说你少了大括号,而是括号前面没有函数头之类的。你那说的第11行,肯...
error
C2449
: found '{' at file scope (missing function header...
答:
{ int z; //max函数中的声明部分,定义本函数中用的到的变量z为整型 if(x>y)z=x; //若x>y成立,将x的值赋给变量z else z=y; //否则(即x>y不成立),将y的值赋给变量z }
error
C2449
: found '{' at file scope (missing function header...
答:
jsValue()jsValu*/ //这句被注释掉了,应该改成main(),或jsValue但需要另有main()函数来调用 { //这个大括号前面应该有函数名和变量定义 int a,i,q,bw,s,g,cnt; //由于后面有a[i]的引用所以这里定义a是有问题的,应去掉而用上面定义 for(i=0;i<300;i++){q=a[i]/1000...
error
C2449
: found '{' at file scope (missing function header...
答:
void main(){ void input(int *a,int n);void sort(int *a,int n);void output(int *a,int n);int a[10];input(a,10);sort(a,10);output(a,10);getchar(); // 增加一行 getchar(); // 增加一行 } void input(int *a,int n) //void input(int *a,int n);{ int i;...
c 语言
中的 error
c 2449
和 error c 2059怎么解决
答:
第22行 void input() 多了一个分号
1
2
3
4
5
涓嬩竴椤
其他人还搜
c语言错误
c语言程序错误怎么找
c语言运行错误原因
c语言错误提示怎么看
c语言常见错误
c语言怎么看错误提示信息
c语言a>b>c
c语言输入
c语言?