Hi there, my texture name (string) are represented by chars so I can use them in chararrays as tilemaps. It looks like this:
std::map <char, std::string> BmpRef; // so we know which string(texture) is represented by which char
Then we got the function to retrieve which string is tied to which char:
std::string FindBmpRef(char a) {return BmpRef[a];}; // find which string is represented by the specified char
But what about if the char (a) doesnt exists in the map? Then I want to return the string "UNDEFINED".
How do I check for a map element? Couldnt find it in the msdn...