This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
cpp:stl:iterators [2023/05/29 17:54] gthanos [Κοινές συναρτήσεις για όλους τους iterators] |
cpp:stl:iterators [2023/05/29 17:58] gthanos [Κοινές συναρτήσεις για όλους τους iterators] |
||
|---|---|---|---|
| Line 241: | Line 241: | ||
| std:: | std:: | ||
| for (int i=0; i<10; i++) mylist.push_back (i*10); | for (int i=0; i<10; i++) mylist.push_back (i*10); | ||
| + | | ||
| + | for(std:: | ||
| + | std::cout << *it << " "; | ||
| + | std::cout << std::endl; | ||
| std:: | std:: | ||
| Line 255: | Line 259: | ||
| | | ||
| std::cout << " | std::cout << " | ||
| - | std::cout << " | ||
| return 0; | return 0; | ||