wydxry
wydxry
全部文章
分类
题解(86)
归档
标签
去牛客网
登录
/
注册
wydxry的博客
全部文章
(共91篇)
题解 | #求长方体表面积#
#include<bits/stdc++.h> using namespace std; class rectangle{ private: int length,width; public: rectangle(int x,int y){ length=x; w...
C++
2022-04-11
0
332
题解 | #重写子类计算逻辑#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { this->x = x;...
C++
2022-04-11
0
333
题解 | #子类中调用父类构造#
#include <iostream> using namespace std; class Base { private: int x; int y; public: Base(int x, int y) { ...
C++
2022-04-11
0
326
题解 | #重载小于号#
#include <iostream> using namespace std; class Time { public: int hours; // 小时 int minutes; // 分钟 Time() ...
C++
2022-04-11
0
329
题解 | #数组类的拷贝构造函数#
#include<bits/stdc++.h> using namespace std; class Array{ private: int n;//数组大小 int *a;//数组 public: Array(){ cin>>n; a=new...
C++
2022-04-11
5
579
题解 | #设计立方体类#
#include <iostream> using namespace std; class Cube { // write your code here...... private: int length; int width; int he...
C++
2022-04-11
0
324
题解 | #构造函数#
#include <iostream> #include <string> using namespace std; // Person类 class Person { public: string name; // 姓名 i...
C++
2022-04-11
0
274
题解 | #【模板】队列#
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int q[N]; int n, x; int front = -1, back = -1; string s; int main() { c...
C++
2022-03-24
0
256
题解 | #【模板】栈#
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int st[N]; int n, x, top = -1; string s; int main() { cin>>n; ...
C++
2022-03-24
1
342
题解 | #牛牛的单向链表#
#include <bits/stdc++.h> using namespace std; struct Node { int val; Node *next; Node():val(0),next(NULL){} }; int main() { int ...
C++
链表
2022-03-04
0
447
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页