Run-Time Check Failure #3 - The variable 'side' is being used without being defined.

Q:编译通过了 但是运行时弹出以对话框上面是Run-Time Check Failure #3 - The variable 'side' is being used without being defined.

#include "iostream"
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
int a;
cout<<a<<endl;
return 0;
}


A:

1.改成全局变量就好了

2.没初始化吧……给个初值试试

你可能感兴趣的:(Run-Time Check Failure #3 - The variable 'side' is being used without being defined.)