Advertisement
zodiak1

Untitled

Feb 13th, 2022
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. struct list
  5. {
  6.    list(char _elem, list* _next = NULL) : elem(_elem), next(_next) { }
  7.  
  8.    char elem;
  9.    list* next;
  10. };
  11.  
  12. int main()
  13. {
  14.    list* p = new list(1, new list(2, new list(3)));
  15.  
  16.    return 0 * _getch();
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement