摘要:
#includeusing namespace std;class Date { public: Date(int year=1970,int month=1,int day=1); // 默认构造函数,将日期初始化为1970年1月1日 Date(const Date& d); void display(); // 显示日期 int getMonth(int y... 阅读全文
随笔档案-2019年04月
期中考试
2019-04-30 15:08 by 孙乾(小U), 112 阅读, 收藏,
摘要:
class Date { public: Date(int year=1970,int month=1,int day=1); // 默认构造函数,将日期初始化为1970年1月1日 Date(const Date& d); void display(); // 显示日期 int getMonth(i 阅读全文
实验三
2019-04-23 23:13 by 孙乾(小U), 113 阅读, 收藏,
摘要:
一、画布类和小球类 代码: #include <iostream> #include "canvas.h" #include "Ball.h" int main() { Canvas canvas; Ball ball1(10,10); system("pause"); ball1.left(5); 阅读全文
Complex类的实现
2019-04-01 23:42 by 孙乾(小U), 174 阅读, 收藏,
摘要:
#include<iostream> #include<cmath> using namespace std; class complex{ public: complex(double a,double b=0); complex(complex &p); void show(); void ma 阅读全文
浙公网安备 33010602011771号