cpp:stl:map

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cpp:stl:map [2020/05/31 08:25]
gthanos [H συνάρτηση operator[]]
cpp:stl:map [2020/05/31 08:30]
gthanos [H συνάρτηση operator[]]
Line 124: Line 124:
   std::string address_mm = students[ Student("Minie Mouse", 1240) ];   // address_mm does not exist   std::string address_mm = students[ Student("Minie Mouse", 1240) ];   // address_mm does not exist
      
-  std::cout << "Peter Pan aem: " << aem_pp << std::endl; +  std::cout << "Peter Pan   address: " << address_pp << std::endl; 
-  std::cout << "Minie Mouse aem: " << aem_mm << std::endl;             // empty string+  std::cout << "Minie Mouse address: " << address_mm << std::endl;             // empty string
 } }
 </code> </code>
cpp/stl/map.txt · Last modified: 2020/06/01 06:13 (external edit)