- 博客(8)
- 收藏
- 关注
原创 标准的dfs模板,深度遍历
https://leetcode-cn.com/problems/increasing-subsequences/solution/biao-zhun-dfsmo-ban-shao-jia-gai-jin-by-mr_cai/https://leetcode-cn.com/problems/permutations/solution/hui-su-suan-fa-xiang-jie-by-labuladong-2/
2020-05-19 14:45:06
135
原创 c++primerplus第六版第十二章第四答案
#pragma oncetypedef unsigned long Item;#include<iostream>class stack{ enum { max = 3 }; Item *pitem; int size; int top;public: stack(int n = max); stack(const stack&st); ~stack...
2020-03-09 15:46:28
110
原创 c++primer plus第六版第十二章第三题
#pragma once#include<iostream>class stock{ char*str; int shares; double share_val; double total_val; void set_tot() { total_val = shares * share_val; };public: stock(); stock(const ch...
2020-03-04 20:42:07
93
原创 c++primerplus第六版第十二章第二题
#pragma once#include<iostream>using namespace std;class stringg{ int len; char *str;public: stringg(); stringg(const char*p); stringg(const stringg&c); stringg &operator=(cons...
2020-03-02 22:51:34
112
原创 c++primer plus第六版第十二章第一题
//h文件#pragma onceclass cow{ char name[20]; char*hobby; double weight;public: cow(); cow(const char*m, const char*ho, double wt); cow(const cow&c); cow &operator=(const cow&c); ...
2020-03-01 21:45:42
93
原创 c++primer第六版第十一章第七题
//h文件#pragma once#include<iostream>using namespace std;class coplexx{ double x; double y;public: coplexx() { x = 0; y = 0; }; coplexx(double a, double b) { x = a, y = b; }; coplexx o...
2020-02-27 10:32:17
244
原创 c++primer第六版十一章第四题
#h文件#include<iostream>class time{ int minute; int hour;public: time() { minute = 0, hour = 0; }; time(int a, int b) { hour = a, minute = b; }; time(int a) { hour = a / 60, minute = a - ...
2020-02-15 20:25:44
57
原创 c++primer11章,123
h文件#includeusing namespace std;class vector{double x;double y;double distance;double ang;public:vector() { x = 0, y = 0, distance = 0, ang = 0; };vector(double a, double b, char m);void se...
2020-02-15 19:34:57
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人