📄 forbidden.cpp
字号:
#include "iostream.h"
namespace
{
class coordinate
{
int x;
int y;
public:
coordinate(int a,int b)
{
x = a;
y = b;
}
int GetX() const
{
return x;
}
int GetY() const
{
return y;
}
};
}
class Derived:public coordinate
{
public:
Derived(int a,int b):coordinate(a,b)
{
}
void Output()
{
cout<<GetX()<<GetY()<<endl;
}
};
void main()
{
Derived d(3,5);
d.Output();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -