User Tools

Site Tools


cpp:stl:container_common_functions

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
cpp:stl:container_common_functions [2023/05/30 19:13]
gthanos [A. Διαγραφή από λίστα]
cpp:stl:container_common_functions [2023/05/30 19:18] (current)
gthanos [Αναζήτηση σε associative container και unordered associative container]
Line 265: Line 265:
   std::unordered_set<std::string> myset;   std::unordered_set<std::string> myset;
   std::unordered_set<std::string>::iterator it;   std::unordered_set<std::string>::iterator it;
-  char* word[] = { "sugar", "choco", "milk", "banana", "coffee" };+  std::string word[] = { "sugar", "choco", "milk", "banana", "coffee" };
  
   // unordered_set some initial values:   // unordered_set some initial values:
cpp/stl/container_common_functions.txt · Last modified: 2023/05/30 19:18 by gthanos