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 revisionPrevious revision
Next revision
Previous revision
cpp:stl:container_common_functions [2023/05/30 19:08] – [Κοινές συναρτήσεις για όλους τους containers] gthanoscpp:stl:container_common_functions [2023/05/30 19:18] (current) – [Αναζήτηση σε associative container και unordered associative container] gthanos
Line 121: Line 121:
  
   return 0;   return 0;
 +}
 </code> </code>
  
Line 264: 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.1685473721.txt.gz · Last modified: 2023/05/30 19:08 by gthanos