i_Xer
i_Xer
全部文章
分类
归档
标签
去牛客网
登录
/
注册
i_Xer的博客
TA的专栏
4篇文章
0人订阅
C++学习之路
4篇文章
261人学习
全部文章
(共10篇)
题解 | #数组类的构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: // write your code here...... Ar...
2023-03-12
0
263
题解 | #长方形的关系#
#include<bits/stdc++.h> #include <string> using namespace std; class rectangle{ private: int length,width; public: void set(int x,in...
2023-03-12
0
233
题解 | #比较长方形的面积大小#
#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-12
0
323
题解 | #友元类#
#include<bits/stdc++.h> using namespace std; class phone{ // write your code here...... friend class myphone; private: int price; public:...
2023-03-12
0
214
题解 | #加号运算符重载#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
2023-03-12
0
291
题解 | #友元全局函数#
#include <iostream> using namespace std; class Person { // write your code here...... friend void showAge(Person& p); public: ...
2023-03-12
0
179
题解 | #浅拷贝和深拷贝#
来自专栏
#include <iostream> #include <cstring> #pragma warning(disable : 4996) using namespace std; class Person { public: char* nam...
2023-03-12
0
230
题解 | #构造函数#
来自专栏
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
2023-03-12
0
208
题解 | #点和圆的关系#
来自专栏
#include <iostream> using namespace std; // 点类 class Pointer { private: int x; // x 坐标 int y; // y 坐标 public: ...
2023-03-12
0
261
题解 | #设计立方体类#
来自专栏
#include <iostream> using namespace std; class Cube { // write your code here...... private: int length; int width; ...
2023-03-12
1
243