After all the datas are insert to the MAP, is it is possible to re-sort the MAP using some other key ??
No, that's not possible. An std::map is always sorted by the key type that is given to it at compile-time. The only way you can sort by something else is to copy the contents to a new map or vector which is then sorted on a different key.
You must erase the key and use a different key.
I'm not sure what you mean here.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.