#include LinkedList.h
#include "LinkedList.h"
LinkedList::LinkedList()
{
//constructor
}
LinkedList::~LinkedList()
{
//dtor
}
[..] understanding that the main file (main.cpp) includes the header file (MyClass.h) which includes the implementation file (MyClass.cpp)is wrong.
main.cpp-->MyClass.h-->MyClass.cpp
how does including the header from the main file work because doesn't the implementation (class.cpp) not get included?Sorry, but this is no longer within the scope of our forum and violates the forum rules therefore. Please grab yourself a C++ beginners book and read about the basics. Basically sections about how a compiler works, and what a linker does.