Your headers are incorrect. They should be like so.
The error you were asking about is concerning two names clashing in the constructor. If the parameter names match member names, you must either change the parameter names, or prefix the member names with "this->". Here is the corrected constructor in question.
bookobject(string nam, string author, string isbn, int num)
number = num;