daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LinkedList<int> list;
  2.     /*for (size_t i = 0; i < 10; i++)
  3.     {
  4.         list.add_last(i);
  5.     }
  6.     show(list);
  7.     list.add_after(list.begin(), 11);
  8.     show(list);
  9.     list.remove(list.begin());
  10.     show(list);
  11.  
  12.     LinkedList<int> list2{ list };
  13.     std::cout << !(list2 == list) << std::endl;
  14.     std::cout << (list2 == list) << std::endl;
  15.  
  16.     LinkedList<int> list3{ std::move(list2) };
  17.     show(list2);
  18.     show(list3);
  19.  
  20.     list2 = std::move(list3);
  21.     show(list2);
  22.     show(list3);
  23.  
  24.     std::cout << *list.begin() << std::endl;
  25.     std::cout << *(--list.begin()) << std::endl;*/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top