Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <list>
  3. using namespace std;
  4.  
  5. class Test{
  6.   public:
  7.   Test(){
  8.     cout << "Angelegt\n";
  9.   }
  10.  
  11.   Test( const Test & T ){
  12.     cout << "Kopiert\n";
  13.   }
  14. };
  15.  
  16. int main()
  17. {
  18.  
  19.     list<Test> mylist;
  20.   Test T = mylist.front();
  21.     cout << "mylist.front()" << endl;
  22.     cout.flush();
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement