牛客249212431号
牛客249212431号
全部文章
分类
华为机试-python版(4)
题解(2)
归档
标签
去牛客网
登录
/
注册
牛客249212431号的博客
全部文章
(共96篇)
题解 | #迭代器遍历容器#
#include <iostream> // write your code here...... #include <vector> using namespace std; int main() { // write your code here.........
2024-05-28
0
191
题解 | #多态实现求面积体积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2024-05-28
0
181
题解 | #多态实现计算器功能#
#include <iostream> using namespace std; class BaseCalculator { public: int m_A; int m_B; // write your code here.....
2024-05-28
0
218
题解 | #求长方体表面积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2024-05-14
0
207
题解 | #构建长方体类#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2024-05-14
0
168
题解 | #重写子类计算逻辑#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
2024-05-14
0
151
题解 | #子类中调用父类构造#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
2024-05-11
0
149
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2024-05-08
0
189
题解 | #加号运算符重载#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2024-05-08
0
182
题解 | #友元类#
#include<bits/stdc++.h> using namespace std; class phone{ // write your code here...... friend class myphone; private: int price; public:...
2024-05-08
0
153
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页