牛客458666302号
牛客458666302号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客458666302号的博客
全部文章
(共27篇)
题解 | #子类中调用父类构造#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
2023-09-15
0
345
题解 | #不死神兔问题#
#include <iostream> using namespace std; int getSum(int n); int main() { int n; cin >> n; cout << getSum(n) <<...
2023-09-15
0
255
题解 | #函数实现计算一个数的阶乘#
#include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial...
2023-09-15
0
323
题解 | #编写函数实现字符串翻转(引用方式)#
#include<bits/stdc++.h> using namespace std; // write your code here...... void my_reverse(string &s) { for (int i{0}; i < s.length()...
2023-09-15
0
342
题解 | #比较字符串大小#
#include <iostream> using namespace std; int mystrcmp(const char* src, const char* dst); int main() { char s1[100] = { 0 }; char s2[1...
2023-09-15
0
263
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int **p {new int*[n]...
2023-09-15
0
281
题解 | #数组元素处理#
#include <iostream> using namespace std; void func(int* p, int n); int main() { int arr[6] = { 0 }; for (int i = 0; i < 6; i++) { ...
2023-09-15
0
329
首页
上一页
1
2
3
下一页
末页