牛场主
牛场主
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛场主的博客
全部文章
(共17篇)
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> #include <utility> using namespace std; // write your code here...... int swap (int& m, int& n) { int temp; ...
2023-05-20
0
149
题解 | #函数实现计算一个数的阶乘#
#include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial...
2023-05-20
1
206
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> #include <utility> using namespace std; // write your code here...... int temp; int swap (int *m, int *n) { tem...
2023-05-18
1
167
题解 | #数组元素处理#
#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-05-17
1
187
题解 | #创建二维动态数组#
#include<bits/stdc++.h> #include <iostream> using namespace std; int main(){ int n; cin>>n; // write your code here........
2023-05-16
1
155
题解 | #创建动态数组#
#include <iostream> using namespace std; int main() { int n; cin >> n; // write your code here...... int* ptr ...
2023-05-15
2
171
题解 | #获取字符串长度#
#include <cstddef> #include <iostream> using namespace std; int main() { char str[100] = { 0 }; cin.getline(str, sizeof(str)); ...
2023-05-15
4
119
题解 | #C++冒泡排序#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = 0...
2023-05-15
1
139
题解 | #数组元素反转#
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = ...
2023-05-15
1
201
题解 | #获取数组最值#
#include <algorithm> #include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(in...
2023-05-15
1
138
首页
上一页
1
2
下一页
末页