牛客249212431号
牛客249212431号
全部文章
分类
华为机试-python版(4)
题解(2)
归档
标签
去牛客网
登录
/
注册
牛客249212431号的博客
全部文章
(共96篇)
题解 | #友元全局函数#
#include <iostream> using namespace std; class Person { // write your code here...... friend void showAge(Person& p); public: ...
2024-05-08
0
137
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int whitespace = 0;...
2024-05-07
0
171
题解 | #函数实现计算一个数的阶乘#
#include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial...
2024-05-07
0
147
题解 | #浅拷贝和深拷贝#
#include <iostream> #include <cstring> #pragma warning(disable : 4996) using namespace std; class Person { public: char* nam...
2024-05-02
0
144
题解 | #数组类的构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: // write your code here...... ...
2024-05-02
0
150
题解 | #长方形的关系#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2024-05-02
0
154
题解 | #比较长方形的面积大小#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2024-05-02
0
154
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
2024-04-30
0
165
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; int main() { char str[100] = { 0 }; char substr[100] = { 0 }; c...
2024-04-30
0
159
题解 | #点和圆的关系#
#include <iostream> using namespace std; // 点类 class Pointer { private: int x; // x 坐标 int y; // y 坐标 public: ...
2024-04-29
0
288
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页