相关代码 |
|
// STL-map.cc #include #include #include using namespace std; int main() { map nameAge; nameAge["Duck,Donald"] = 7; nameAge["Mouse,Mickey"] = 39; nameAge["Duck,Daisy"] = 14; cout } /*out OOP> gpp STL-map.cc OOP> a.out Donald is 7 years old. OOP> */