test.cpp

来自「vc++教程代码,完整的vc++代码,学习必备,大家共享,有问题请联系我」· C++ 代码 · 共 31 行

CPP
31
字号
#include <iostream.h>

class Point
{
public:
	void output()
	{
		
		init();
	}
	static void init()
	{
		x=0;
		y=0;
	}
private:
	static int x,y;
};

//int Point::x=0;
//int Point::y=0;
void main()
{
/*	Point pt;
	pt.init();
	pt.output();*/

//	Point::init();
	//Point::output();

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?