Question: (Use c++ code please) Problem 4. (20 pts total) A Twitter is an object where Tweet messages are stored. Consider the following class interface: class
Problem 4. (20 pts total) A Twitter is an object where Tweet messages are stored. Consider the following class interface: class Twitter public: Twitter creates an empty Twitter void add (Tweet newmessage) adds new Tweets to the vector messages tweets Tweet get tweets (string subject); returns the Tweet with that subject private: vector Tweet messages i Using the class Tweet from Problem 4, provide solutions to the following: (a) Write the addtweet function which adds a new Tweet message (newmessage) to the vector messages. the member function gettweet which returns the frst message in the messages which has the subject equal to the parameter subject
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
