摘要:
/*类型转换函数一般用于将类型转换为基本数据类型,但也可以转换为构造类型,如下*/#include <stdlib.h>#include<iostream>#include <stdio.h>#include<cmath>using namespace std;class Point{private:double x;public:Point(double a= 0):x(a){};void Show(){cout<<"x:"<<x<<endl;}};class A{protected:do 阅读全文