1 #include <map> 2 #include <string> 3 4 #define intint_map std::map<int, int> 5 #define strint_map std::map<std::string, int> 6 #define intstr_map std::map<int, std::string> 7 #define strstr_map std::map<std::string, std::string> 8 9 10 int main() 11 { 12 intint_map ii; 13 14 ii[0] = 0; // Set break point at this line. 15 ii[1] = 1; 16 ii[2] = 0;// Set break point at this line. 17 ii[3] = 1; 18 ii[4] = 0;// Set break point at this line. 19 ii[5] = 1; 20 ii[6] = 0; 21 ii[7] = 1; 22 ii[85] = 1234567; 23 24 ii.clear();// Set break point at this line. 25 26 strint_map si; 27 28 si["zero"] = 0;// Set break point at this line. 29 si["one"] = 1;// Set break point at this line. 30 si["two"] = 2; 31 si["three"] = 3; 32 si["four"] = 4; 33 34 si.clear();// Set break point at this line. 35 36 intstr_map is; 37 38 is[85] = "goofy";// Set break point at this line. 39 is[1] = "is"; 40 is[2] = "smart"; 41 is[3] = "!!!"; 42 43 is.clear();// Set break point at this line. 44 45 strstr_map ss; 46 47 ss["ciao"] = "hello";// Set break point at this line. 48 ss["casa"] = "house"; 49 ss["gatto"] = "cat"; 50 ss["a Mac.."] = "..is always a Mac!"; 51 52 ss.clear();// Set break point at this line. 53 54 return 0;// Set break point at this line. 55 }