Question: I need help creating a function for addTweet in c++, I am not sure how to start, This function is used to add a new

I need help creating a function for addTweet in c++, I am not sure how to start, This function is used to add a new tweet into a timeline. The function receives as parameters, the timeline (array) in which the tweet is to be added, the current number of tweets in the timeline, and the message content for the tweet. The functions then proceeds to add the message as a new tweet in the timeline, into the next empty slot in the timeline array - IF there is enough room left in the array. It sets the number of likes for the tweet to zero If the entry was added, the function should update the usedSize parameter and return position number in the array of where the tweet was added. If the entry could not be added because the array is full, the function should return -1 instead

*THIS FUNCTION DOES NOT PRINT ANYTHING ON SCREEN*

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 Databases Questions!