Sebgg

l2y1

Nov 13th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Node
  2. {
  3.   Node(int value = 0)
  4.     : value{value}, next{nullptr}
  5.   {}
  6.  
  7.   int value;
  8.   Node* next;
  9. };
  10.  
  11. int main()
  12. {
  13.   Node* first{new Node{5}};
  14.   first->next = first;
  15. }
Add Comment
Please, Sign In to add comment