ZJUN123
ZJUN123
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ZJUN123的博客
全部文章
(共16篇)
题解 | 点和圆的关系
#include <iostream> using namespace std; // 点类 class Pointer { private: int x; // x 坐标 int y; // y 坐标 public: ...
2025-12-31
0
91
题解 | 使用字符函数统计字符串中各类型字符的个数
#include <iostream> #include <string> using namespace std; #include <cctype>//字符处理函数的头文件 //函数模板 template <typename Pred> i...
2025-12-31
0
83
题解 | 编写函数实现字符串翻转(引用方式)
#include<bits/stdc++.h> using namespace std; // write your code here...... #include <string> #include <algorithm> #include <cmat...
2025-12-24
0
62
题解 | 比较字符串大小
#include <iostream> using namespace std; #include <cmath> #include <string> int mystrcmp(const char* src, const char* dst); int ma...
2025-12-22
0
59
题解 | 创建动态数组
#include <iostream> using namespace std; #include <vector> int main() { int n; cin >> n; // write your code here...
2025-12-22
0
69
题解 | 获取字符串长度
#include <iostream> using namespace std; #include <string> int main() { //以下两行代码是c语言风格的代码,不兼容c++ // char str[100] = { 0 }; ...
2025-12-22
0
54
题解 | C++选择排序
#include <iostream> using namespace std; // int* selection_sort(int arr[],int len) // { // for(int i = 0;i < len;i++) // { // ...
2025-12-21
0
65
题解 | 计算一个数的阶乘
#include <iostream> using namespace std; int main() { int n; cin >> n; long long factorial = 1; // write your c...
2025-12-18
0
73
题解 | 求 1 - n 之间偶数的和
#include <iostream> using namespace std; int main() { int n; cin >> n; int sum = 0; // write your code here.......
2025-12-18
0
58
题解 | 括号配对问题
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define N 10000 char* IsBracket(char *S) { ...
2025-11-15
0
46
首页
上一页
1
2
下一页
末页