Search⌘ K
AI Features

STL Based Telephone Book

Explore how to implement a telephone book program in C++ using STL vectors. Learn to add, view, and search contacts by name or number through a menu-driven interface, improving your practical knowledge of STL data handling.

We'll cover the following...

Problem

Write a program using STL to maintain a telephone book containing names and telephone numbers. It should be possible to search the telephone book either using a name or using a telephone number.

Sample run

Here’s what you should see when ...