Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions