Container is a collection which help us to store data of different types of data structure.
There are only two types of container in C++/C :
- array
- structure
C++ could provide more container but it didn’t.
Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime; knowledge is the best charity;
🙂
Here we are gona to design a container which is like array but not the same.
You could find the implementation of this container on my github.
You could test out container by this program.
|
|
You could also see the output beblow there:
Photo by Jason Leaster in ChangDe, China
近期评论