Bàn làm việc của dân IT | Chia sẻ những kiến thức về Công nghệ thông tin, Công nghệ phần mềm, Khoa học máy tính | Sharing knowledge of Information Technology, Software Engineering và Computer Science.
Map là một trong những kiểu dữ liệu bình chứa kết hợp (asssociative container): nghĩa là mỗi phần tử trong bình chứa là một sự kết hợp giữa giá trị khóa (key value) và giá trị tương ứng với khóa đó (mapped value). Map là một lớp trong bộ nhóm các kiểu dữ liệu tập hợp (containers) được cài đặt trong bộ thư viện mẫu chuẩn STL của ngôn ngữ C++.
Các giá trị khóa là dữ liệu thuộc kiểu tùy ý. Và do đó, chúng ta có thể dùng các chuỗi kí tự làm key value cho một map.
Associative Array
Cài đặt associative array sử dụng map
#include
Một số cách khác
HashTable (cũng có tên gọi khác là HashMap) là một kiểu dữ liệu thùng chứa kết hợp tổng quát (Associative Array) dùng để lưu trữ các phần tử có cấu trúc: một khóa duy nhất (key) kết hợp với một giá trị (value). STL không cài đặt HashMap. Vì vậy, đối với người lập trình có thể tự xây dựng một lớp HashMap phù hợp với nhu cầu công việc của mình.
I love making new professional acquaintances. Don't hesitate to contact me via nguyenvungoctung@gmail.com if you want to talk about information technology, education, and research on complex networks analysis (i.e., metabolic networks analysis), data analysis, and applications of graph theory.
Specialties: researching and proposing innovative business approaches to organizations, evaluating and consulting about usability engineering, training and employee development, web technologies, software architecture.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.