template <typename T>
class linked;
template <typename T>
class node {
    ...
    friend class linked<T>; 
};
template <typename T>
class linked {
    ...
};
Note that I have forward declared the linked class so as to declare it a friendly class of node but now I want to make a different .h and .cpp file for each of the class. How will I do the forward declaration in them.
 
     
    