Expected unqualified id

I'm currently in the baby stages of a program, which is supposed to call from separate files and get their information in order to work. I have been getting this error for a little bit now and it's getting very annoying. Anyone know how to fix it?
#include <string>
#include <iostream>
#include "book.h"

using namespace std;

int main ()
{
class BookType b;
b.SetTitle;
b.SetAuthor;
b.SetPublisher;
b.SetISBN;
b.SetPrice;
b.SetCopyNumber;

cout << "This is for testing the BookType class: " << endl;

cout << b.GetTitle() << endl;
cout << b.GetAuthor() << endl;
cout << b.GetPublisher() << endl;
cout << b.GetISBN() << endl;
cout << b.GetPrice() << endl;

return(0);
}

My error keeps saying:
testBook.cpp:5: error: expected unqualified-id before ‘using’.

Any clues?
I suspect the problem is in your book.h file. Are you missing a semi-colon after your class BookType { ... }; definition?
Declare a class (BookType) type like this: BookType b and not class BookType b, no need for the class keyword.

Check in your class definition for possible error or show us so that we may proffer solution.

Topic archived. No new replies allowed.