if i create a map of key string and value, a class called image,,,,eg:
map(string,image) ,,,where image is a class,,,,,,how can i add new elements to the map???? so if i have a function called new and the function takes name ( where name is a string ofcourse)and adds that name to the map (so that later on i can select that image) it would work????
i know i can do it with pointers i suppose but is there another way of doing it without the pointers?
and i know i can declare the map like so :
map (string, Image) imageMap
and add elements like:
imageMap[name] = value;
but the q is then can i add like that without giving it a value????? can the object image be accessed then?
any answers soon will be apreciated