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 say there is Error in line ==> DISPLAY(users,Tuser) which before line of return 0; What is the solution? Error (active) E0308 more than one instance of overloaded function "DISPLAY" matches the argument list: the image of problem
Aucun commentaire:
Enregistrer un commentaire