摘要: #include using namespace std;//函数指针类型void myfunc(int a,int b){ cout<<a<<b<<endl;}void myfunc(char* a){ cout<<*a<<endl;}//函数类型//typedef void (myp... 阅读全文
posted @ 2015-11-07 18:26 爱读书de小学生 阅读(219) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class Point { public: Point(double xx, double yy) { x=xx; y=yy; } friend double Distance(Point &a, Point &b);... 阅读全文
posted @ 2015-11-07 18:22 爱读书de小学生 阅读(193) 评论(0) 推荐(0) 编辑
摘要: //#include using namespace std;class complex{public: complex() { real=imag=0; } complex(double r, double i) { real = r, imag = i; }... 阅读全文
posted @ 2015-11-07 17:26 爱读书de小学生 阅读(243) 评论(0) 推荐(0) 编辑