开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
Linux GCC
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
NO
问题(Question):
#include <cstdlib>
#include <iostream>
using namespace std;
int VDR = 3000;
void SetVR()
{
VDR =VDR -100;
APP->dec(5,4);
}
class APP
{
public:
void dec(int x, int y);
};
void dec(int x,int y)
{
int d = x-y;
cout << d << endl;
}
int main()
{
SetVR();
cout << VDR <<endl;
system("pause");
return 0;
}
预期的正确结果(Expected Output):
2900
1
错误结果(Wrong Output):
APP was not declared in this scope
不晓得如何处理?
我已经是使用public为何外部抓不到