![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
Aries_0324
这个作者很懒,什么都没留下…
展开
-
1.C++继承访问权限
1.C++继承访问权限1.公有继承派生类不可访问基类私有成员,可通过基类的公有成员函数访问#include<iostream>using namespace std;//基类class base{ int x;public: void setx(int n){ x=n; } int getx(){ return x; } void showx() { cout<<x<<endl; }};//派生类class derived:public原创 2021-08-11 22:40:43 · 609 阅读 · 0 评论 -
C语言实现HashMap
C语言实现HashMapMyhash.h中定义哈希节点,采用邻接表避免哈希冲突。/**file:Myhash.h*定义节点以及相关操作哈希表函数**/#ifndef _Myhash_#define _Myhash_#include<stdio.h>typedef void* typeKey;typedef void* typeValue;typedef struct Hashnode { typeKey key; typeValue value;原创 2021-03-28 20:45:20 · 473 阅读 · 0 评论