课后第8题.cpp
来自「C++编写的程序源码,里有21天学通C++的课后作业源码和章节源码.」· C++ 代码 · 共 18 行
CPP
18 行
#include<iostream>
using namespace std;
class tv
{
public:
void setstation(int station);
int getstation()const;
private:
int itsstation;
};
main()
{
tv mytv;
mytv.itsstation =8;
tv.setstation(10);
tv myothertv(2);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?