cpp:stl:containers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
cpp:stl:containers [2021/06/06 07:42] – [Προσδιορισμός εύρους στοιχείων] gthanos | cpp:stl:containers [2021/06/06 07:50] – [Προσδιορισμός εύρους στοιχείων] gthanos | ||
---|---|---|---|
Line 125: | Line 125: | ||
for (std:: | for (std:: | ||
std::cerr << ' ' << *it; | std::cerr << ' ' << *it; | ||
- | std::cerr << std:: | + | std::cerr << std:: |
| | ||
std:: | std:: | ||
- | mylist.assign(myarray.cbegin() + 1, myarray.cbegin() + 4); | + | mylist.assign(myarray.cbegin() + 1, myarray.cbegin() + 4); // copy array positions 1, 2 and 3 |
std::cerr << " | std::cerr << " | ||
for (std:: | for (std:: | ||
std::cerr << ' ' << *it; | std::cerr << ' ' << *it; | ||
- | std::cerr << std:: | + | std::cerr << std:: |
| | ||
return 0; | return 0; |
cpp/stl/containers.txt · Last modified: 2022/05/26 16:49 by gthanos