Question: Please complete the following C + + program, you don't need to write the main function, because this is only part of the larger program,

Please complete the following C++ program, you don't need to write the main function, because this is only part of the larger program, Please complete the function without changing the framework, the available information and requirements are already in the picture
Task 4: Display posts
```
// Display all posts:
// This function takes as input:
//1) the posts array
//2) the posts array size
// And works as follows:
//1) Traverse the array, and invoke the GIVEN function
// print_post_data(Post *post) to print the data of each post
//** DISCLAIMER**: You MUST not modify any GIVEN function or the contents of given cout's.
void display_posts(Post **posts_array, const unsigned int num_of_posts){
// TODO: Write the code to display posts
}
```
Here is a sample way to display posts:
- Assume we have 2 posts
Post Id: 23,2 likes, content: C++ is easy.
Post Id: 67,180 likes, content: C++ is so hard.
Please complete the following C + + program, you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!