帮我看看哪里有错误并帮忙改一下 #include "stdafx.h"#include class Y{public:Y(int i){_callsXval = i;}static int callsXval(){return _callsXval;}private:static int _callsXval;};static int Y::_callsXval = 0;void main(){Y A(0);cout
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 12:29:25
帮我看看哪里有错误并帮忙改一下 #include "stdafx.h"#include class Y{public:Y(int i){_callsXval = i;}static int callsXval(){return _callsXval;}private:static int _callsXval;};static int Y::_callsXval = 0;void main(){Y A(0);cout
帮我看看哪里有错误并帮忙改一下
#include "stdafx.h"
#include
class Y
{
public:
Y(int i){_callsXval = i;}
static int callsXval(){return _callsXval;}
private:
static int _callsXval;
};
static int Y::_callsXval = 0;
void main()
{
Y A(0);
cout
帮我看看哪里有错误并帮忙改一下 #include "stdafx.h"#include class Y{public:Y(int i){_callsXval = i;}static int callsXval(){return _callsXval;}private:static int _callsXval;};static int Y::_callsXval = 0;void main(){Y A(0);cout
#include
using namespace std;
class Y {
public:
Y() {}
static int callsXval() {return _callsXval;}
static void callsXval(int value) {_callsXval = value;}
private:
static int _callsXval;
};
int Y::_callsXval = 0;
int
main(void) {
Y::callsXval(3);
cout