|
先把代码贴上来
#include "stdafx.h"
#include "windows.h"
int WINAPI test1(int a,int b)
{
return a+b;
}
int __fastcall test2(int a,int b)
{
return a+b;
}
int PASCAL test3(int a,int b)
{
return a+b;
}
int __stdcall test4(int a,int b)
{
return a+b;
}
int test5(int a,int b)
{
return a+b;
}
int main(int argc, char* argv[])
{
test1(3,5);
test2(3,5);
test3(3,5);
test4(3,5);
test5(3,5);
return 0;
}
报错如下:
--------------------Configuration: hanshu2 - Win32 Debug--------------------
Compiling...
hanshu2.cpp
c:\program files (x86)\microsoft visual studio\vc98\include\excpt.h(7) : error C2146: syntax error : missing ';' before identifier 'test1'
c:\program files (x86)\microsoft visual studio\vc98\include\excpt.h(7) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
hanshu2.exe - 1 error(s), 0 warning(s)
各位大佬帮忙看看这个问题出在哪里了,这串代码之前我是可以编译通过的,但是不知道为什么现在就不行了,去百度说是头文件的问题,但是按照百度的方法还没有解决。
|
上一篇: 宏定义啥意思?为什么逗号前要加 _x下一篇: 64位进程 怎么遍历32+64位进程模块
|