+38 098 888 58 89 Alexander
Problems with the map in C++
When working with a map in C++ and used char* as key having trouble when try finding item in the map by key.
The essence of the problem is that this type of char* is array of characters ending null character, so compare them have special functions.
So to work properly map need use the following entry map
Sample code. Attention! code is an example extracted from the project is not the fact that it is work.
// compare function for map
You can add comment on current page, or on forum page there.
|powered by Steel Programming|