Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- struct list
- {
- char v;
- list *n;
- };
- int main()
- {
- list *a = new list;
- //Верхняя схема
- list *p = new list {1, new list};
- p->n = new list { 2, new list };
- p->n->n = new list { 3, NULL };
- return 0 * _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement