仰_
仰_
全部文章
分类
归档
标签
去牛客网
登录
/
注册
仰_的博客
全部文章
(共38篇)
题解 | #点和圆的关系#
#include <iostream> using namespace std; // 点类 class Pointer { private: int x; // x 坐标 int y; // y 坐标 public: void setX(int...
2023-03-29
0
266
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... private: int length, width, height; public: ...
2023-03-21
0
182
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> using namespace std; // write your code here...... void mySwap(int &a,int &b) { int t=a; a=b; b=t; } int main(...
2023-03-21
0
285
题解 | #函数实现计算一个数的阶乘#
#include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial...
2023-03-21
0
255
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int whitespace = 0;...
2023-03-21
0
238
题解 | #编写函数实现两数交换(指针方式)#
#include <iostream> using namespace std; // write your code here...... void myswap(int *a,int *b) { int t; t = *a; *a = *b; *b ...
2023-02-11
0
217
题解 | #比较字符串大小#
#include <iostream> using namespace std; int mystrcmp(const char* src, const char* dst); int main() { char s1[100] = { 0 }; char s2[1...
2023-02-11
0
255
题解 | #数组元素处理#
#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-02-10
0
242
首页
上一页
1
2
3
4
下一页
末页