Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- struct list
- {
- list(char _elem, list* _next = NULL) : elem(_elem), next(_next) { }
- char elem;
- list* next;
- };
- int main()
- {
- list* p = new list(1, new list(2, new list(3)));
- return 0 * _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement