![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OperatorOverloading
文章平均质量分 85
ALDNOAH_ZERO
刷题与作业题为主
展开
-
1004. The Date class (version 1)
Time Limit: 1sec Memory Limit:256MB Description Implement the operator , >= with the class Date class Date { public: Date(int y=0, int m=1, int d=1); static bool leapyear(int year); i原创 2015-05-17 16:28:42 · 1139 阅读 · 0 评论 -
1003. The String class
Description Implement 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 · 610 阅读 · 0 评论 -
1001. NumCalClass
Time Limit: 1sec Memory Limit:256MB Description 补充完成类numCal的定义 (注意:所有运算符的重载都必须符合运算符原本的语义,比如++A是“先加后使用”) class numCal { public: numCal(int a[], int size); //构造函数,size是数组a的长度 numCal(co原创 2015-06-12 15:59:50 · 554 阅读 · 0 评论