implement a vector replacement that operates only on integers, v
implement a vector replacement that operates only on integers, vectorofint (you don't need to use templates like the normal stl). your class should have the following interface:• a no-argument constructor that allocates a 32 element vector• a constructor that takes an initial size as the argument• a method get, taking an index as returning the value at that index• a method set, that takes an index and a value, and sets the value at that index• a method pushback that adds an element to the end of the array, resizing if necessary• a method pushfront that adds an element to the beginning of the array• a copy constructor and task operatoryour class should not leak memory; any memory it allocates must be deleted. try to think carefully about how your class can be misused, and how you should handle them. what do you do if a user gives a negative initial size? what about accessing a negative index?
Price Type: Negotiable
Total Proposals: 7
1 Current viewersl
10 Total views
Proposals Reputation Price offered