旺仔烧麦
旺仔烧麦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
旺仔烧麦的博客
TA的专栏
46篇文章
0人订阅
C/C++题解
46篇文章
26人学习
全部文章
(共67篇)
题解 | 复制部分字符串
来自专栏
#include <iostream> using namespace std; int main(){ // write your code here...... char str[30] = {0}; cin.getline(str, sizeof(st...
2026-01-08
0
16
题解 | 利用指针遍历数组
来自专栏
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int* ptr = arr; int len = sizeof(arr) / sizeof(int); ...
2026-01-08
0
14
题解 | 结构体简单使用
来自专栏
#include <iostream> #include <string> using namespace std; struct student { string name; int age; float height; // write ...
2026-01-08
0
13
题解 | 创建二维动态数组
来自专栏
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; // write your code here...... int *p=new int[n*n];...
2026-01-08
0
16
题解 | 字符的个数
来自专栏
#include<bits/stdc++.h> #include<string> using namespace std; int main(){ std::string s; cin>>s; // write your code her...
2026-01-08
0
15
题解 | C++选择排序
来自专栏
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); int max = 0; fo...
2026-01-07
0
12
题解 | C++冒泡排序
来自专栏
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); int temp = 0; ...
2026-01-07
0
16
题解 | 数组元素反转
来自专栏
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); for (int i = ...
2026-01-07
0
16
题解 | 获取数组最值
来自专栏
#include <iostream> using namespace std; int main() { int arr[6] = { 0 }; int len = sizeof(arr) / sizeof(int); int max = 0; in...
2026-01-07
0
14
题解 | 计算小球走过的路程和反弹高度
来自专栏
#include <iostream> #include <iomanip> using namespace std; int main() { // 下落的高度和落地的次数 double h; int n; double sum = h;...
2026-01-06
0
15
首页
上一页
1
2
3
4
5
6
7
下一页
末页