Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do i correct this program so that the number of activities shows up correctly. please show in ide vector.h X vector.cppX main.cpp X #ifndef

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

How do i correct this program so that the number of activities shows up correctly.

please show in ide

vector.h X vector.cppX main.cpp X #ifndef VECTOR H #define VECTOR H #include #include #include 1 2 class vectors private: std: :vector<:string gym int activities: public: vectors :vector> gymPar) std: :vector getGym void setGym (std: :vector vectors: :getGym O return gym; 7 9 10 void vectors::setGym (vector gym) vectors::gymgym; setActivities (gym.size)): 12 13 14 15 16 17 18 19 20 21 int vectors: :getActivities () return activities; void vectors:: setActivities (int activities) vectors: :activities-activities: vectors: :vectors( 23 24 25 26 27 28 ostream& operator((ostream& os, const vectors &v) os #include "vector"h" using namespace std; int main () 6 7 8 string s: vectorS v coutv; cout>s v.add (S) coutS: v.del (s): coutv; vectors obj (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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions