I have an assignment due in 15 minutes, and I can't figure this one out:
I have main.cpp , SortedType.cpp, ItemType.cpp, SortedType.h and ItemType.h
SortedType needs the class definitions from ItemType...
What do I put at the top of my main file so that all these programs are included????
I thought it would be this, but I am wrong:
#include "ItemType.h"
#include "ItemType.cpp"
#include "SortedType.h"
#include "SortedType.cpp"
PLEASE HELP IF POSSIBLE, ITS A SIMPLE PROBLEM, OUR PROF NEVER TOLD US HOW TO DO THIS WITH 5 FILES B4.
THANKS.