1

Errors compiling a simple 3 file C++ project

view story
linux-howto

http://ubuntuforums.org – linked_list.h Code: /* linked_list.h */ #ifndef _LINKED_LIST_H #define _LINKED_LIST_H #include<iostream> template <class T> class LinkedList {   struct node {     T data;     struct node* next;   }; public:   LinkedList();   void add_node(T data, int position);   void delete_node(T data);   void print(); }; #endif linked_list.cpp Code: /* linked_list.cpp */ #include<iostream> #include "linked_list.h" using namespace std; template <class T> LinkedList<T>::Li (Hardware)