?? .h
字號:
#include"iostream.h"
#include"string.h"
class Circle{
private:
double radius;
public:
Circle(){};
Circle(double a)
{
radius=a;
}
double Area(double radius);
};
class Table{
private:
double height;
public:
Table(){};
Table(double b)
{
height=b;
}
void show(double b)
{
cout<<"桌子的高度為:"<<b<<endl;
}
};
class Roundtable:public Circle,public Table{
private:
char color[20];
public:
Roundtable(){ };
Roundtable(double a,double b,char *c):Circle(a),Table(b)
{
strcpy(color,c);
}
void showcolor()
{
cout<<"桌子的顏色為:"<<color<<endl;
}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -