constructor error

Hi,
I have 3 different cpp file running together but I am getting this error

bookbuild.cpp:4:13: error: expected constructor, destructor, or type conversion before ‘(’ token
books::books(idnumber,tilli,thory,gorycat,copyNum )
^
cirbuild.cpp:3:25: error: expected constructor, destructor, or type conversion before ‘(’ token
circulation::circulation(Cbid,Cmmid,Cisdate,Ciddate)

here's my .cpp and.h file

circulation::circulation(Cbid,Cmmid,Cisdate,Ciddate)
{

setBID(Cbid);
setMemberID(Cmmid);
setIssueDate(Cisdate);
setDueDate(Ciddate);

}

void circulation :: setBID( int bid)
{BID=bid;}

void circulation :: setMemberID( int mid)
{MemberID=mid;}

void circulation :: setIssueDate( int isid)
{IssueDate=isid;}

void circulation :: setDueDate( int did)
{DueDate=did;}

#include<iostream>
#include "h22dr.h"

books::books(idnumber,tilli,thory,gorycat,copyNum )
{
setid(idnumber);
settitle(tilli);;
setauthor(thory);
setcategory(gorycat);
setnumcopy(copyNum);
}



void books:: setid( int pid)
{
ID=pid;
}
void books::settitle( string ptitle)
{title=ptitle;}

void books:: setauthor( string pauthor)
{author=pauthor;}

void books::setcategory( string pcategory)
{category=pcategory;}

void books:: setnumcopy( int pnumcopy)
{numcopy=pnumcopy;}


#include <iostream>
#include<vector>
using namespace std;
class circulation
{public:
circulation(int Cbid, int Cmmid,int Cisdate, int Ciddate);
void setBID( int bid);
void setMemberID( int mid);
void setIssueDate( int isid);
void setDueDate( int did);

private:
int BID;
int MemberID;
int IssueDate;
int DueDate;
};




class books
{
public:
books(int idnumber,string tilli,string thory, string gorycat,int copyNum);
void setid(int pid);
void settitle( string ptitle);
void setauthor( string pauthor);
void setcategory( string pcategory);
void setnumcopy(int pnumcopy);
private:
int ID;
string title;
string author;
string category;
int numcopy;

};


class ABCLibrary
{

public:
ABCLibrary();

vector <books> collection;
vector<circulation> record;
bool check(string titli,string likh, string cat, int nc);
void editbookdetails(int id);
void getlistofbooks( int id);
private:



};





you need to specify the data type you are passing to your constructor
circulation::circulation(int Cbid,int Cmmid,int Cisdate,int Ciddate)
Topic archived. No new replies allowed.