- 博客(3)
- 收藏
- 关注
原创 贵州大学在线判题系统-面向对象程序设计-第三次在线作业
记录学习,或有不足,欢迎参考 第一题 题干: 有两个类Base1和Base2和它们的共同子类Derived。现在Base1、Base2和main函数的代码已经完成。请根据已有的代码完成类Derived的设计。(只需要提交类Derived的代码) 程序的开始部分如下: #include <iostream> using namespace std; class Base1{ int a; public: Base1(int a):a(a){
2022-04-18 14:19:49
3919
6
原创 贵州大学在线判题系统-面向对象程序设计-第二次在线作业
记录学习,写的不好,能凑活用。 第一题 #include <iostream> #include <string> #include <cmath> using namespace std; class Worker { public: Worker(string a, string b, double c); static void printSalary(); private: string name, position; ..
2022-04-17 18:42:42
2924
1
原创 贵州大学在线判题系统oj-面向对象程序设计-第一次在线作业
以培养贵大懒汉为己任,减少潜在竞争对手。萌新写的问题肯定多多,轻喷。 第一题 #include <iostream> #include <string> using namespace std; class Test { public: int DataLength(const string& a) { return a.length(); } int DataLength(int b) { int d = 1; while ((b /= 10)
2022-04-06 23:43:16
4766
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人