User Tools

Site Tools


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
Previous revision
cpp:stl:map [2020/06/01 06:22]
gthanos [std::map και std::multimap]
cpp:stl:map [2020/06/01 06:13] (current)
Line 64: Line 64:
 void print(std::map<K,V> s) { void print(std::map<K,V> s) {
   for(auto it = s.cbegin(); it!=s.cend(); it++)    for(auto it = s.cbegin(); it!=s.cend(); it++) 
-    std::cout << it->first << " -> " << it->second << std::endl;+    std::cout << it->first << " -> " << std::hex << std::uppercase << "0x" << it->second << std::endl;
 } }
  
cpp/stl/map.1590992565.txt.gz · Last modified: 2020/06/01 05:22 (external edit)