void DISPLAY(user u[],int Tuser);
struct user
{
queue<float> time ;
queue<string> purpse;
}users[5];
int main()
{
//codes
DISPLAY(users,Tuser);//here is the problem
return 0;
}
void DISPLAY(user u[], int Tuser)
{
for (int i = 0; i < Tuser; i++)
{
while (!(u[i].purpse.empty()))
{
cout << u[i].purpse.front()<<"\n";
u[i].purpse.pop();
}
cout << "\n";
while (!(u[i].time.empty()))
{
cout << u[i].time.front()<<"\n";
u[i].time.pop();
}
cout << "\n";
}
}
It says there is an error on this line:
DISPLAY(users,Tuser);
What is the solution?
Error (active) E0308 more than one instance of overloaded function "DISPLAY" matches the argument list: