- 博客(16)
- 收藏
- 关注
原创 google学术无法访问
your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
2022-12-17 16:30:16
1708
1
原创 C++实现堆
浙大数据结构,最大堆c++实现#pragma once#include<iostream>using namespace std;class Maxheap {public: Maxheap():m_ptr_stack(NULL), m_size(0), m_maxsize(0) {} Maxheap(int Maxsize); void Insert(int elem); void InitHeap(int Maxsize); bool IsFull(); int
2022-05-10 10:26:01
599
2
原创 C++实现判断同一棵二叉搜索树
浙大数据结构C++实现在二叉搜索树的基础上添加一部分程序主程序:#include"bstree.hpp"void judge_one_tree(int len,int num);void judge_while_tree() { int len = 0; int num = 0; cin >> len; while (len) { cin >> num; judge_one_tree(len, num); cin >> len;
2022-05-08 11:34:52
386
原创 C++实现二叉搜索树
浙大数据结构,有建议请指出,感激不尽#pragma once#include<iostream>using namespace std;template<class T>class Node {public: Node() :data(0), left(NULL), right(NULL) {} public: T data; Node* left; Node* right;};template<class T>class BStre.
2022-05-07 10:28:53
67
原创 C++实现二叉树同构
浙大数据结构C++实现,写的一塌糊涂到处借鉴,,最后的逻辑也看不懂,有需要改正的地方请指出,不胜感激#pragma once#include<iostream>using namespace std;template<class T>class Node {public: T data; int left; int right;public: Node() :data(0), left(-1), right(-1) {}; Node(T d, int l
2022-05-06 18:50:03
957
原创 创建堆区数据后在析构函数中删除报错,求问
class Computer {public: Computer(CPU* c1, GPU* g1, Memory* m1) { m_c1 = c1; m_g1 = g1; m_m1 = m1; } ~Computer() { if (m_c1 != NULL) { delete m_c1; m_c1 = NULL; }//为什么只能提前创建好传进来,否则会报错,就像下面的 //if (m_g1 != NULL) { // delete m_g1; //.
2022-03-27 15:38:00
325
原创 【CondaValueError: The target prefix is the base prefix. Aborting. 】
CondaValueError: The target prefix is the base prefix. Aborting.
2022-03-20 11:36:30
3214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人