sidsung
sidsung
全部文章
分类
归档
标签
去牛客网
登录
/
注册
sidsung的博客
全部文章
(共49篇)
题解 | #统计字符串中子串出现的次数#
#include <iostream> #include <cstring> using namespace std; int main() { char str[100] = { 0 }; char substr[100] = { 0 }; c...
2023-01-16
0
241
题解 | #数组元素处理#
#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-01-16
0
335
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // write your code here...... int** a = new int...
2023-01-13
0
220
题解 | #字符的个数#
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; // write your code here...... int num_a(0), ...
2023-01-13
0
285
题解 | #创建动态数组#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... int* arr = new int...
2023-01-12
0
204
题解 | #复制部分字符串#
#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >>...
2023-01-12
0
223
题解 | #C++选择排序#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i ...
2023-01-12
0
206
题解 | #C++冒泡排序#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i ...
2023-01-12
0
237
题解 | #数组元素反转#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = ...
2023-01-12
0
497
题解 | #获取数组最值#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0; i ...
2023-01-12
3
430
首页
上一页
1
2
3
4
5
下一页
末页