OperatorOverloading
文章平均质量分 85
ALDNOAH_ZERO
刷题与作业题为主
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1004. The Date class (version 1)
Time Limit: 1sec Memory Limit:256MBDescriptionImplement the operator , >= with the class Dateclass Date{public: Date(int y=0, int m=1, int d=1); static bool leapyear(int year); i原创 2015-05-17 16:28:42 · 1223 阅读 · 0 评论 -
1003. The String class
DescriptionImplement the String class:class String {public: String(); // x = "" String(const char*); // x = "abc" String(const String&); // x = other_strin原创 2015-05-17 16:06:25 · 652 阅读 · 0 评论 -
1001. NumCalClass
Time Limit: 1sec Memory Limit:256MBDescription补充完成类numCal的定义(注意:所有运算符的重载都必须符合运算符原本的语义,比如++A是“先加后使用”)class numCal {public:numCal(int a[], int size); //构造函数,size是数组a的长度numCal(co原创 2015-06-12 15:59:50 · 626 阅读 · 0 评论
分享