ISBN.cpp:8: error: 'ISBN' has not been declared
ISBN.cpp:8: error: ISO C++ forbids declaration of 'ISBN' with no type ISBN.cpp: In function 'int ISBN()':
ISBN.cpp:9: error: 'area' was not declared in this scope
ISBN.cpp:10: error: 'publisher' was not declared in this scope
ISBN.cpp:11: error: 'title' was not declared in this scope ISBN.cpp:12: error: 'checkdigit' was not declared in this scope ISBN.cpp:13: error: 'isbnStr' was not declared in this scope
Line 8 through 14 are:
ISBN::ISBN() {
area = NULL;
publisher = NULL;
title = NULL;
checkdigit = NULL;
isbnStr = NULL;
}
They are all declared in the header:
class ISBNPrefix;
class ISBN
{
private:
int area;
int publisher;
int title;
char checkdigit;
char* isbnStr[10];
public:
ISBN();
...
Any ideas as to what could be the issue here? I'm guessing that its something simple I'm missing.
#includethe header in ISBN.cpp, right?char isbnStr[10];looks more reasonable to me...std::string isbnStr;looks even more reasonable.