Question: Please complete the following C + + program , you don't need to write the main function, because this is only part of the larger
Please complete the following Cprogram you don't need to write the main function, because this is only part of the larger program, and the specific requirements are listed in the picture Task : Delete a user
Delete a user:
This function takes as input:
the users list
the posts array
the id of the user to be deleted,
the size of the post array
And works as follow:
If the user does not exist return false
Otherwise,
a First remove all likes made by this user
b Delete the user from the users list
c return true
bool deleteuserUser &userhead, Post &postsarray, const unsigned int uid, const unsigned int postsarraysize
TODO
cout "Failed to find the user"
; print this if the user does not exist.
return false;
For example, here is a user deletion uid::
Example : The state of the system before the deletion of ranking uid:
Task : Delete a User
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
