#Vector Replica

4 messages · Page 1 of 1 (latest)

trim marshBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

modern merlin
#

based on the results of your unit tests, it looks like there are several implementation issues here, with the parameterized constructor, copy constructor, at() method, [] operator, erase() method, and insert() method

#

i would be debugging / adding print statements to see the values of arraySize, arrayCapacity, and aptr at different steps to validate the internal state of your vector objects

stone portal
#

Hi @modern merlin
I found the issue with the class not returning elements. I was not populating the second vector being used. Now my only issue is with test case 10. with the erase methods. It is not keeping the 4 from the test case but everything else is correct.