_苏格拉底_
_苏格拉底_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
_苏格拉底_的博客
全部文章
(共55篇)
题解 | 编写函数实现字符串翻转(引用方式)
#include<bits/stdc++.h> using namespace std; // write your code here...... void reverseString(string&s){ int left=0; int right=s.siz...
2025-11-10
0
24
题解 | 编写函数实现字符串翻转(引用方式)
#include<bits/stdc++.h> using namespace std; // write your code here...... void reverseString(string&s){ int len=s.size(); for(int i...
2025-11-10
0
34
题解 | 创建二维动态数组
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int**arr=new int*[n]...
2025-11-10
0
27
题解 | 编写函数实现两数交换(指针方式)
#include <iostream> using namespace std; // write your code here...... int main() { int m, n; cin >> m; cin >> n; ...
2025-11-04
0
28
题解 | C++冒泡排序
#include<iostream> using namespace std; int main(){ int arr[6]={6}; int len = sizeof(arr)/sizeof(int); for(int i=0;i<len;i++)cin ...
2025-11-04
0
37
题解 | 创建动态数组
#include <iostream> using namespace std; int main() { int n; cin >> n; int new_arr[n]; for(int i=0;i<n;i++){ ...
2025-11-02
0
26
题解 | 复制部分字符串
#include<iostream> using namespace std; int main() { char str[30] = {0}; cin.getline(str,sizeof(str)); int m; cin >> m; ...
2025-11-02
0
28
题解 | 利用指针遍历数组
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
2025-10-30
0
25
题解 | 结构体简单使用
#include <iostream> #include <string> using namespace std; struct student { // write your code here...... string name; int ag...
2025-10-29
1
32
题解 | 字符串拼接
#include <iostream> #include <string> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin...
2025-10-29
1
36
首页
上一页
1
2
3
4
5
6
下一页
末页