旺仔烧麦
旺仔烧麦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
旺仔烧麦的博客
TA的专栏
46篇文章
0人订阅
C/C++题解
46篇文章
26人学习
全部文章
(共67篇)
题解 | 最后k个元素
#include<bits/stdc++.h> #include <vector> using namespace std; int main(){ int n,k,x; vector<int>a; // write your code here.........
2026-01-10
0
10
题解 | 智能排队系统 | 遍历容器的简洁写法 | deque容器
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
2026-01-10
0
19
题解 | 迭代器遍历set容器的用法
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; // write your code here...... int a; while(cin>>a){ s.inse...
2026-01-10
0
40
题解 | 迭代器遍历容器 |vector的用法
#include <iostream> // write your code here...... #include <vector> using namespace std; int main() { // write your code here......
2026-01-10
0
32
题解 | 多态实现求面积体积
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2026-01-10
0
15
题解 | 多态实现计算器功能 | 成员初始化列表写法
#include <iostream> using namespace std; class BaseCalculator { public: int m_A; int m_B; // write your code here.....
2026-01-10
0
20
题解 | 求长方体表面积
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2026-01-10
0
12
题解 | 构建长方体类
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2026-01-10
0
13
题解 | 重写子类计算逻辑
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
2026-01-10
0
13
题解 | 子类中调用父类构造 | ::作用域限定符的使用
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
2026-01-10
0
19
首页
上一页
1
2
3
4
5
6
7
下一页
末页