i have to classes, the Order class is in Order.h and the ISBN class is in ISBN.h
Order.h:
Code:
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
class ISBN;
class Order{
char s;
int ordered;
int delivered;
char ISBN[11];
public:
Order();
Order(const ISBN& isbn); <- here is says expected `,' or `...' before '&' token ISO C++ forbids declaration of `ISBN' with no type
void style(char c);
int has(const ISBN& isbn) const; <- here is says expected `,' or `...' before '&' token ISO C++ forbids declaration of `ISBN' with no type
int onOrder() const;
int augment(istream& is);
int augment(int add);
int recieve(istream& is);
void display(ostream& os) const;
};
ISBN.h
Code:
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
class ISBNPrefix;
class ISBN{
char ISBN1[11];
char area[6];
char publisher[8];
char title[8];
char s;
int isRegistered;
int decode(const ISBNPrefix& list);
public:
ISBN();
ISBN(const char* str, const ISBNPrefix& list);
~ISBN();
void style(char c);
int empty() const;
int registered() const;
void toStr(char* isbn) const;
void toStrWithStyle(char* isbn) const;
int accept(istream& is, const ISBNPrefix& list); /* not */
friend int operator==(const ISBN& left, const ISBN& right); /* not */
};
any ideas what caused this?