摘要:
//Date.h #ifndef DATE_H #define DATE_H #include <iostream> #include <iomanip> #include <string> using namespace std; /* Date Class */ class Date { pub 阅读全文
posted @ 2022-08-30 20:51
catting123
阅读(37)
评论(0)
推荐(0)
摘要:
//Employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H #include <iostream> #include <iomanip> #include <string> #include "Date.h" using namespace std; /* 阅读全文
posted @ 2022-08-30 20:47
catting123
阅读(61)
评论(0)
推荐(0)
摘要:
打印温度柱状图 #include <iostream> #include <iomanip> #include <cmath> using namespace std; //输入n个温度 void inputTemps(int temp[], int n); //显示月间温度的柱状图 void di 阅读全文
posted @ 2022-08-30 20:43
catting123
阅读(42)
评论(0)
推荐(0)
摘要:
题目 代码 第一题 #include <iostream> using namespace std; //求数字根 int digital_root(int n) { while (n >= 10) { n = n / 10 + n % 10; } return n; } int main() { 阅读全文
posted @ 2022-08-30 20:37
catting123
阅读(38)
评论(0)
推荐(0)