I just created this void and wanted to use it in my int main ().
But it gives the following error: too few arguments to function
How can i resolve this?
But it gives the following error: too few arguments to function
You're calling it incorrectly. You must feed it two parameters when you call it. How many are you passing in at the minute? Let's see: display_members();
Zero.
How many does it want? void display_members(Member member_array[], int& amountofmembers)
Two.
this might have been a mistype but you can't use that in int main(). You would use that outside of it and "link" (I can't think of the proper term) it to int main() by using display_members(value, value)