旺仔烧麦
旺仔烧麦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
旺仔烧麦的博客
TA的专栏
46篇文章
0人订阅
C/C++题解
46篇文章
60人学习
全部文章
(共69篇)
题解 | map的使用-auto的几种写法-char的本质 | 统计字符串中各字母字符对应的个数
#include <iostream> // write your code here...... #include<map> using namespace std; int main() { char str[100] = { 0 }; cin.get...
2026-01-11
0
46
题解 | 去除字符串中重复的字符
#include <iostream> // write your code here...... #include<set> #include<cstring> using namespace std; int main() { char str[1...
2026-01-11
0
45
题解 | 最后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
34
题解 | 智能排队系统 | 遍历容器的简洁写法 | deque容器
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
2026-01-10
0
66
题解 | 迭代器遍历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
85
题解 | 迭代器遍历容器 |vector的用法
#include <iostream> // write your code here...... #include <vector> using namespace std; int main() { // write your code here......
2026-01-10
0
79
题解 | 多态实现求面积体积
#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
34
题解 | 多态实现计算器功能 | 成员初始化列表写法
#include <iostream> using namespace std; class BaseCalculator { public: int m_A; int m_B; // write your code here.....
2026-01-10
0
45
题解 | 求长方体表面积
#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
36
题解 | 构建长方体类
#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
29
首页
上一页
1
2
3
4
5
6
7
下一页
末页