旺仔烧麦
旺仔烧麦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
旺仔烧麦的博客
TA的专栏
46篇文章
0人订阅
C/C++题解
46篇文章
26人学习
全部文章
(共67篇)
题解 | 十进制整数转十六进制字符串
#include <iostream> #include <string> using namespace std; string toHexString(int n); int main() { int n; cin >> n; ...
2026-01-11
0
14
题解 | 实现简单计算器功能
#include <iostream> using namespace std; class calculation{ private: int a; int b; public: virtual int calc(int...
2026-01-11
0
13
题解 | 容器存放类对象指针-私域访问getter函数的用法 | 个人所得税计算程序
#include <iomanip> #include <ios> #include <iostream> #include<string> // write your code here...... #include<vector> u...
2026-01-11
0
18
题解 | 统计字符串中各类型字符的个数
#include <iostream> #include <cstring> using namespace std; int main() { int letter = 0; int digit = 0; int space = 0; i...
2026-01-11
0
16
题解 | 找到数组里的第k大数(C++)
#include<bits/stdc++.h> using namespace std; int main(){ int n,k,x; vector<int>a; // write your code here...... cin>>n>>k;...
2026-01-11
0
19
题解 | 使用算法
#include <iostream> #include <vector> // write your code here...... #include<algorithm> using namespace std; int main() { int...
2026-01-11
0
20
题解 | 判断元素是否出现
#include<bits/stdc++.h> using namespace std; int main(){ //write your code here...... int n, m, x, a; map<int, int>map; cin>>n&g...
2026-01-11
0
18
题解 | 查找 |set.upper_bound
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; //write your code here...... int n, m, a, x; cin>>n>>m...
2026-01-11
0
14
题解 | 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
19
题解 | 去除字符串中重复的字符
#include <iostream> // write your code here...... #include<set> #include<cstring> using namespace std; int main() { char str[1...
2026-01-11
0
15
首页
上一页
1
2
3
4
5
6
7
下一页
末页