HI
First I apologiz
about my bad language
Be cuz my language is not English
I have this problem in my project code
And I try to solve it but I cannot
This is in the part of main
int main ()
{
Queue<primaryPatient> primaryQueue;//create object from class Queue with
//data type primaryPatient
PriorityQueue<patient,int> pq;//create object from class priority Queue with
//data type pateint and type key int
AvlTree<Doctor,int> tree;
patient* rooms[5];
for (int i=0; i<5 ; i++)
rooms[i] = NULL;
And this is where the problem exists
void check (patient *rooms[5],PriorityQueue<patient,int> pq,AvlTree<Doctor,int> &tree)
{
patient p;
Doctor d;
bool flag = true;
while (!pq.emptyQueue() && flag)
{
pq.dequeue(p);
for (int i=0; i<5; i++)
{
if (rooms[i]==NULL )
{
rooms[i] = &p;
callDoctor(tree,i);
i = 5;
}
else
{
if (i == 4)
cout<<"\nthere is no room available..";
pq.enqueue(p);
flag = false;
}
}
}
if (flag)
cout<<"\nthere is no patient need to be treated";
}
this is print scren of the problem
http://up4.m5zn.com/photos/00080/KNNMJ90Z1Y7S.jpg
and this is the prob
error. no match for 'operator==' n+c++
ifind ur forums helpfull
and i hope i finde help