仰_
仰_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
仰_的博客
全部文章
(共38篇)
题解 | #长方形的关系#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2024-04-19
0
165
题解 | #统计字符串中各类型字符的个数#
#include <iostream> #include <cstring> using namespace std; int main() { int letter = 0; int digit = 0; int space = 0; i...
2023-07-23
0
340
题解 | #使用算法#
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int num; std::vector<int>...
2023-07-23
0
258
题解 | #统计字符串中各字母字符对应的个数#
#include <cstring> #include <iostream> #include <map> #include <string> int main() { char str[100] = { 0 }; std::cin....
2023-07-23
0
276
题解 | #去除字符串中重复的字符#
#include <iostream> #include <set> using namespace std; int main() { char str[100] = { 0 }; cin.getline(str, sizeof(str)); // 读取...
2023-05-30
0
240
题解 | #智能排队系统#
#include <iostream> #include <deque> using namespace std; class Guest { public: string name; bool vip; Guest(string name, bo...
2023-05-30
0
257
题解 | #迭代器遍历容器#
#include <iostream> #include <vector> using namespace std; int main() { int num1, num2, num3,num4, num5; cin >> num1 >&g...
2023-05-30
0
253
题解 | #重写子类计算逻辑#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x ...
2023-05-30
0
229
题解 | #友元全局函数#
#include <iostream> using namespace std; class Person { // write your code here...... friend void showAge(Person &p); public: ...
2023-04-12
0
188
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 int age; ...
2023-03-29
0
193
首页
上一页
1
2
3
4
下一页
末页