缺少类型说明符怎么解决?
C++开始执行后出现这个错误怎么解决?错误 C4430 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
#include<iostream>
using namespace std;
func(int a, int b)
{
static int m, i = 2;
i += m + 1;
m = i + a + b;
return(m);
}
int main()
{
int k = 4, m = 1, p;
p = func(k, m);
cout << p << endl;
p = func(k, m);
cout << p << endl;
return 0;
}