来自「visualCplusplus学习课件大连东软培训教材」· 代码 · 共 24 行
TXT
24 行
#include <iostream.h>
class GamPlayer
{
public:
GamPlayer();
static const int Max;
protected:
private:
};
const int GamPlayer::Max = 10;
GamPlayer::GamPlayer()
{
}
int main(int argc, char* argv[])
{
GamPlayer a;
GamPlayer b;
cout << (a.Max) << endl;
cout << (b.Max) << endl;
cout << &(a.Max) << endl;
cout << &(b.Max) << endl;
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?