⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prac47.cpp

📁 this program is good for C++ learner
💻 CPP
字号:
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
class R  {
  public:
  int a;
  float x,y;
   R(int a1){a=a1;}
   R(float x1,float y1){x=x1; y=y1;}
};
class S:public R {
  public:
   float z;
   S(float z1,int a):R(a){z=z1;}
   S(float z1,float x, float y):R(x,y){z=z1;}
};
class T:public S {
  public:
    int b;
    char c;
   T(char c1,int b1,float z,int a):S(z,a){c=c1; b=b1;}
   T(char c1,int b1,float z,float x,float y):S(z,x,y){c=c1; b=b1;}
   T(char c1,float z,int a):S(z,a){b=3; c=c1;}
   T(char c1,float x,float z,float y):S(z,x,y){c=c1; b=3;}
  };
void main(){
   T t1('A',1,3.4,2.1), t2('B',2,3.5,1.1,2.2);
   T t3('C',2.3,100), t4('D',1.2,2.3,1.4);
  getch();
}

⌨️ 快捷键说明

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