Love_YourZ
Love_YourZ
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Love_YourZ的博客
全部文章
/ 题解
(共80篇)
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int **arr=new int*[n]; for(int i=0;i<n;i++){ ...
C++
2022-03-31
14
813
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int *p=new int[n*n];...
C++
2022-03-31
10
690
题解 | #创建动态数组#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... int *p=new int...
C++
2022-03-31
0
225
题解 | #复制部分字符串#
#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >>...
C++
2022-03-31
0
251
题解 | #复制部分字符串#
#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >>...
C++
2022-03-31
0
218
题解 | #获取字符串长度#
```#include <iostream> using namespace std; int main() { char str[100] = { 0 }; cin.getline(str, sizeof(str)); // write your code...
C++
2022-03-31
0
263
题解 | #利用指针遍历数组#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
C++
2022-03-31
0
196
题解 | #结构体简单使用#
#include <iostream> #include <string> using namespace std; struct student { // write your code here...... char name[20]; int ...
C++
2022-03-31
0
228
题解 | #字符的个数#
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int m=s.size(),co...
C++
2022-03-31
0
389
题解 | #字符串拼接#
#include <iostream> #include <string> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin...
C++
2022-03-31
0
222
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页