i want to create a program in which when i give any abrivation like TCP so it gives Transmission control protocol............in C++...i work in borland c++
map<std::string, std::string> combinations;
combinations["TCP"] = "Transmission Control Protocol";
Actually I don't recommend direct assign. What if combinations["TCP"] already exist? I would silently overwrite it with a new value. If that is the intention it is fine but most of the times, we want to know if an element exist before we try to over-write or create a new entry.
Different developer mileage varies so I guess above is practiced commonly also :)