User Tools

Site Tools


cpp:stl:containers

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:stl:containers [2021/06/06 07:42] – [Προσδιορισμός εύρους στοιχείων] gthanoscpp:stl:containers [2021/06/06 07:49] – [Προσδιορισμός εύρους στοιχείων] gthanos
Line 125: Line 125:
   for (std::array<int,SIZE>::iterator it = myarray.begin(); it!=myarray.end(); ++it)   for (std::array<int,SIZE>::iterator it = myarray.begin(); it!=myarray.end(); ++it)
     std::cerr << ' ' << *it;     std::cerr << ' ' << *it;
-  std::cerr << std::endl;                                               // myarray: 1 2 3 4 5 6 7 8 9+  std::cerr << std::endl;                                 // myarray: 1 2 3 4 5 6 7 8 9 10
      
   std::list<int> mylist;   std::list<int> mylist;
Line 132: Line 132:
   for (std::list<int>::iterator it = mylist.begin(); it!=mylist.end(); ++it)   for (std::list<int>::iterator it = mylist.begin(); it!=mylist.end(); ++it)
     std::cerr << ' ' << *it;     std::cerr << ' ' << *it;
-  std::cerr << std::endl;                                               // mylist: 2 3 4+  std::cerr << std::endl;                                 // mylist: 2 3 4
      
   return 0;   return 0;
cpp/stl/containers.txt · Last modified: 2022/05/26 16:49 by gthanos