Question: how do i change this program so that it allows me to input what gym activity i want to add and delete using cin. also

 how do i change this program so that it allows me

to input what gym activity i want to add and delete using

cin. also add a data member called gym activities that will know

how many activities there are in total ch I vector.cpp X: man.qpM

how do i change this program so that it allows me to input what gym activity i want to add and delete using cin. also add a data member called gym activities that will know how many activities there are in total

ch I vector.cpp X: man.qpM #ifndef VECTOR H #define VECTORH #include #include #include - 5 class vectors e a private: 10 std: :vector<:string> gym "bench""back", "chest") 12 13 14 15 16 17 18 19 20 21 public: vectors): vectors (std: :vectorcstd::string> gymPar): std::vector<:string getgym void setgym istringo gympar friend std: :ostreams operator :ostream const vector sv add elem t del : endi f vector.cppx vector.h xi ostream os vectors for i return os: vectors::add gym.push back gym . size vectors: :del if cout is deleted not present endl cc ruild messages vector.cpp main.cpp> "vector . h" vector.h X #include #include 3 using namespace std: 5 int main () vectors v: cout

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!