okay, I've got three files. book.h (header for class Book), book.cc (implementation for class Book), and main.cc (application file). I'm including book.cc in book.h and book.h in main.cc. but for some reason it's not working at all. it doesn't recognize Book as a class and everything is undefined. it works if I include the header in the implementation then the implemenation in the main, but that defeats the point of the class doesn't it? here's what it looks like:
like I said, it works if I do it the opposite way, but that defeats the purpose of hiding the implementationCode:' //in book.cc #include <iostream> #include <cstdlib> #include <string> #include <fstream> #include <cctype> #include <cmath> using namespace std; //in book.h #include "book.cc" //in main.cc #include "book.h"