cyt涛
cyt涛
全部文章
分类
归档
标签
去牛客网
登录
/
注册
cyt涛的博客
全部文章
(共31篇)
题解 | #浅拷贝和深拷贝#
#include <iostream> #include <cstring> #pragma warning(disable : 4996) using namespace std; class Person { public: char* nam...
2023-03-10
0
358
题解 | #长方形的关系#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2023-03-09
0
304
题解 | #比较长方形的面积大小#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: void set(int x,int y){ length=x; wi...
2023-03-09
0
295
题解 | #点和圆的关系#
#include <iostream> using namespace std; // 点类 class Pointer { private: int x; // x 坐标 int y; // y 坐标 public: ...
2023-03-09
0
274
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... public: void setLength(int length) { this-...
2023-03-09
0
306
题解 | #编写函数实现字符串翻转(引用方式)#
#include<bits/stdc++.h> using namespace std; // write your code here...... void str(string &s) { for(int i=0;i<s.length()/2;i++) { ...
2023-03-09
0
311
题解 | #编写函数实现两数交换(引用方式)#
#include <iostream> using namespace std; // write your code here...... void swap(int &a,int &b) { int temp=a; a=b; b=temp; } int m...
2023-03-09
0
346
题解 | #不死神兔问题#
#include <iostream> using namespace std; int getSum(int n); int main() { int n; cin >> n; cout << getSum(n) <<...
2023-03-09
0
280
题解 | #函数实现计算一个数的阶乘#
#include <iostream> using namespace std; long long factorial(int n); int main() { int n; cin >> n; cout << factorial...
2023-03-09
0
256
题解 | #使用字符函数统计字符串中各类型字符的个数#
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int whitespace = 0;...
2023-03-09
0
320
首页
上一页
1
2
3
4
下一页
末页