牛客458666302号
牛客458666302号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客458666302号的博客
全部文章
(共27篇)
题解 | #迭代器遍历容器#
#include <iostream> // write your code here...... #include <vector> using namespace std; int main() { // write your code here.........
2023-09-16
0
334
题解 | #多态实现计算器功能#
#include <iostream> using namespace std; class BaseCalculator { public: int m_A; int m_B; // write your code here.....
2023-09-16
0
297
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int whitespace = 0;...
2023-09-16
0
284
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; int main() { char str[100] = { 0 }; char substr[100] = { 0 }; c...
2023-09-16
0
398
题解 | #最后k个元素#
#include<bits/stdc++.h> using namespace std; int main(){ int n,k; vector<int>a; // write your code here...... cin >> n >> ...
2023-09-15
0
296
题解 | #迭代器遍历set#
#include<bits/stdc++.h> using namespace std; int main(){ set<int>s; // write your code here...... for (int i{0}, num; i < 5; i++) { ...
2023-09-15
0
244
题解 | #多态实现求面积体积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2023-09-15
0
252
题解 | #求长方体表面积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
2023-09-15
0
282
题解 | #数组类的构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: // write your code here...... ...
2023-09-15
0
229
题解 | #重写子类计算逻辑#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
2023-09-15
0
209
首页
上一页
1
2
3
下一页
末页