cpp:stl:container_common_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:stl:container_common_functions [2022/06/01 04:23] – gthanos | cpp:stl:container_common_functions [2023/05/29 16:03] – [Β. Ένθεση σε set, unordered set] gthanos | ||
---|---|---|---|
Line 53: | Line 53: | ||
Student students[] = { Student(" | Student students[] = { Student(" | ||
| | ||
- | std::cerr << "----- Init list -----" << std:: | + | std::cerr << "----- Init set -----" << std:: |
- | std:: | + | std:: |
for(int i=0; i<2; i++) { | for(int i=0; i<2; i++) { | ||
- | | + | |
- | | + | |
} | } | ||
| | ||
- | | + | |
| | ||
std::cerr << " | std::cerr << " | ||
- | std::cerr << "mylist | + | std::cerr << "myset contains:"; |
- | for (std:: | + | for (std:: |
std::cerr << ' ' << *it; | std::cerr << ' ' << *it; | ||
std::cerr << std::endl; | std::cerr << std::endl; |
cpp/stl/container_common_functions.txt · Last modified: 2023/05/30 19:18 by gthanos