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 revision
Previous revision
Next revisionBoth sides next revision
cpp:stl:containers [2020/05/29 08:40] – [Προσδιορισμός εύρους στοιχείων] gthanoscpp:stl:containers [2020/05/29 08:42] – [Προσδιορισμός εύρους στοιχείων] gthanos
Line 112: Line 112:
 <code cpp int_copy.cpp> <code cpp int_copy.cpp>
 #include <iostream>     // std::cout #include <iostream>     // std::cout
-#include <algorithm>    // std::copy 
 #include <list>         // std::list #include <list>         // std::list
 #include <array>        // std::array #include <array>        // std::array
-#include "Student.hpp" 
 #define SIZE 10 #define SIZE 10
  
Line 135: Line 133:
   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;+  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