We all know that using data structure well is very important in programming, because it affects the performance, data accuracy, maintenance no matter what kind of the program you write. In C language, we have to provide our data structure by ourselves or by searching for related library and grab it to use. But, if possible ( I mean if your program is able to use g++ compiler and the environment ), you can consider to just use Containers (C++ STL) in your program. It is useful and powerful. For more information, here is the official web site :
http://www.cplusplus.com/reference/stl/
Container class templates
Sequence containers:
- vector Vector (class template
)
- deque Double ended queue (class template
)
- list List (class template
)
Container adaptors:
- stack LIFO stack (class template
)
- queue FIFO queue (class template
)
- priority_queue Priority queue (class template
)
Associative containers:
- set Set (class template
)
- multiset Multiple-key set (class template
)
- map Map (class template
)
- multimap Multiple-key map (class template
)
- bitset Bitset (class template)
No comments:
Post a Comment