---C++学习----
文章平均质量分 63
hbh1
这个作者很懒,什么都没留下…
展开
-
[C++学习]矩阵运算符重载
#include#includeclass A{public: A (){p=0;}; A (const A&); A operator++(); A operator+(const A &); A operator*(const A &); A& operator=(const A &); void gouzao(int,int); void copy(co原创 2005-08-23 01:05:00 · 2055 阅读 · 0 评论 -
[C++学习]万年历
//万年历程序#include #include //判断某年是否是闰年bool isLeapYear(int year){ if((year%4==0&&year%100!=0)||(year%400==0)) return true; else return false;}//根据年和月计算天数int daysOfMonth(int year,int month){ int result;原创 2005-08-23 01:11:00 · 896 阅读 · 1 评论