warning C4101: unreferenced local variable
#include"stdafx.h"#include"iostream"usingnamespacestd;classb{public:staticinti;};clas...
#include "stdafx.h"
#include "iostream"
using namespace std;
class b
{public:
static int i;
};
class a
{public:
b val;
};
void main()
{
a nn;
cout<<nn.val.i<<endl;
} 展开
#include "iostream"
using namespace std;
class b
{public:
static int i;
};
class a
{public:
b val;
};
void main()
{
a nn;
cout<<nn.val.i<<endl;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询