fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename T>
  5. class LinkedList{
  6. public:
  7. class Node{
  8. public :
  9. T elem;
  10. Node* next;
  11. Node()
  12. {
  13. next = NULL;
  14. }
  15. };
  16. Node* header;
  17. LinkedList()
  18. {
  19. Node test;
  20. test.elem = NULL;
  21. }
  22. };
  23.  
  24. int main()
  25. {
  26. LinkedList< char > list;
  27. list.header->elem = NULL;
  28. return 0;
  29. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty