菜鸟系列:这是什么错误,如何改正?
我给一个类添加了一个函数,为什么编译时会出现错误:
error C2447: missing function header (old-style formal list?)
什么是函数头,该怎么改正?请高手指点迷津!谢谢!
问题点数:50、回复次数:5Top
1 楼WingfireWu(休息,休息一下...)回复于 2002-03-05 13:39:36 得分 5
没有加括号??func()Top
2 楼someone(阿风)回复于 2002-03-05 13:48:01 得分 5
是不是未inlcude h文件Top
3 楼panda_w(好想睡啊!)回复于 2002-03-05 14:30:53 得分 10
试了几下都没有发现怎么会产生这种错误信息!Top
4 楼Rose2000(巴山雾)回复于 2002-03-05 16:15:44 得分 30
missing function header (old-style formal list?)
An open curly brace ({) was found at global scope without a corresponding function header.
This error can be caused by using the old-style C-language formal list.
Check that the function being defined has an appropriate function declaration.
The following is an example of this error:
int c;
{} // error
Top
5 楼Rose2000(巴山雾)回复于 2002-03-05 16:17:19 得分 0
把错误的号拷贝到msdn上,就能找出这么一大堆话来。Top




