以身示範
map::operator[] - C++ Reference - cplusplus.com - The C++ Resources Network小羅很瘦,身高183釐米,體重只有51,同事都叫他做“排骨酥”,平常又糟蹋得出名,三十好幾了,根本就找不到老婆。 因此,當心情憂鬱時,就去一家沙龍喝酒,沙龍老闆娘是一個離過婚的女人,頗有幾分姿色,小羅心中對她早就存有幻想,但是她對小羅,連看都不看一眼。 一天,小羅又來喝酒,老Notice how the last access (to element 'd') inserts a new element in the map with that key and initialized to its default value (an empty string) even though it is accessed only to retrieve its value. Member function map::find does not produce this effect...
全文閱讀