1- Classes and Objects
Structures
A struct in C is a type consisting of a sequence of data membersSome functions/Statements are needed to operate the data members of an object of a struct type 不不小心操作错误,不小心越界
Classes
You should b…
705.设计哈希集合 方法:使用链地址法
设哈希表的大小为base,可以设计一个简单的哈希函数:hash(x) x mod base
开辟一个大小为base的数组,数组的每个位置是一个链表,当计算出哈希值后,就插入到对应位置的…