摘要: /*类型转换函数一般用于将类型转换为基本数据类型,但也可以转换为构造类型,如下*/#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 阅读全文
posted @ 2012-10-11 22:33 myth_HG 阅读(233) 评论(0) 推荐(0) 编辑