设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 1572|回复: 0
打印 上一主题 下一主题

一段老的代码,关于重载的

[复制链接]
跳转到指定楼层
1#
发表于 2009-11-4 00:01:30 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
//point.h #ifndef POINT_CPP #define POINT_CPP class point{ protected: double x,y; public:point(double xx=0,double yy=0){ x=xx;y=yy; } point operator=(point); double magnitude(); double angle(); point operator+(point); /* #ifndef _ZTC_ point operator+(); #endif */ point operator-(point); // point operator-(); point operator*(double); point operator/(double); point operator%(point); point operator+=(point); point operator-=(point); point operator*=(double); point operator/=(double); point operator%=(point); point operator++(); point operator--(); point operator[](double); point operator<<(double); point operator>>(double); point operator<<=(double); point operator>>=(double); bool operator<(point); bool operator>(point); bool operator<=(point); bool operator>=(point); bool operator==(point); bool operator!=(point); bool operator!(); bool operator&&(point); bool operator||(point); double operator&(point); double operator|(point); double operator^(point); point operator&=(point); point operator|=(point); point operator^=(point); void print(char* msg=""); }; #endif //point.cp
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-18 18:30 , Processed in 0.087245 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表