Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Default Constructor Find - Takes in a string that can either be a phone number or a name and returns the found contact as a

Default Constructor
Find - Takes in a string that can either be a phone number or a name and returns the found contact
as a pointer. Returns a nullptr if a given string is not a name or a number in the contact system.
Add - Takes in a contact object and stores its memory address in the furthest-most empty position
in the array. The current order of contacts in the array must be preserved. (Note: passing by value
will result in a garbage pointer). It returns nothing. Also know that there will never be a
test case that tries to add a Contact that already exists in

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. Why?

Answered: 1 week ago

Question

1. Where do these biases come from?

Answered: 1 week ago