bcxp
bcxp
全部文章
题解
归档
标签
去牛客网
登录
/
注册
bcxp的博客
全部文章
/ 题解
(共72篇)
题解 | #多态实现计算器功能#
#include <iostream> using namespace std; class BaseCalculator { public: int m_A; int m_B; // write your code here.....
2022-04-16
0
366
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2022-04-16
3
423
题解 | #加号运算符重载#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2022-04-16
0
344
题解 | #求长方体表面积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2022-04-13
0
302
题解 | #子类中调用父类构造#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
2022-04-10
0
365
题解 | #迭代器遍历set#
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; // write your code here...... for(int i=0;i<5;i++) { ...
2022-04-06
0
334
题解 | #迭代器遍历容器#
#include <iostream> // write your code here...... #include<vector> using namespace std; int main() { // write your code here...... ...
2022-04-06
0
289
题解 | #友元类#
#include<bits/stdc++.h> using namespace std; class phone{ // write your code here...... friend class myphone;//声明为友元类 private: int price; ...
2022-04-06
0
301
题解 | #确定哪些订单购买了 prod_id 为 BR01 的产品(一)#
select cust_id,order_date from Orders where order_num in( select order_num from OrderItems where prod_id='BR01' ) order by order_date asc;
2022-04-03
0
318
题解 | #数组类的拷贝构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: Array(){ cin>>n; a=new...
2022-04-02
3
411
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页