牛客249212431号
牛客249212431号
全部文章
分类
华为机试-python版(4)
题解(2)
归档
标签
去牛客网
登录
/
注册
牛客249212431号的博客
全部文章
(共96篇)
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... private: int length, width, height; ...
2024-04-29
0
238
题解 | #编写函数实现字符串翻转(引用方式)#
#include<bits/stdc++.h> using namespace std; // write your code here...... void swap(char &a, char &b) { char temp = a; a = b; ...
2024-04-28
0
225
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> using namespace std; // write your code here...... void swap(int &a, int &b) { int temp = a; a = b; b ...
2024-04-28
0
212
题解 | #创建二维动态数组#
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... // 创建一个指向指针的指针 ...
2024-04-28
0
185
题解 | #创建动态数组#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... int *dynamicAr...
2024-04-28
0
206
题解 | #复制部分字符串#
#include <iostream> using namespace std; int main() { char str[30] = { 0 }; cin.getline(str, sizeof(str)); int m; cin >>...
2024-04-28
0
179
题解 | #利用指针遍历数组#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
2024-04-25
0
152
题解 | #结构体简单使用#
#include <iostream> #include <string> using namespace std; struct student { // write your code here...... string name; int ag...
2024-04-25
0
170
题解 | #字符串拼接#
#include <iostream> #include <string> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin...
2024-04-25
0
147
题解 | #数组元素反转#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = ...
2024-04-25
0
197
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页