Skip to content

Yash010704/Inventory-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Interactive Map-Based List Management Program

This is a C++ program for managing a list of items stored in a map using an interactive console menu. The program allows users to:

  • Insert new items into the map
  • Edit existing items
  • Search for an item by its index ID
  • View all items in the map

Features

  • Insert Items: Add new key-value pairs (index ID and item name) to the map.
  • Edit Items: Update the name of an item using its index ID.
  • Search Items: Search for an item using its index ID.
  • Print Items: Display all key-value pairs in the map.

Program Flow

  1. Start with an Empty List: If the list is empty, the program prompts you to add items.
  2. Choose an Operation: A menu is displayed, offering options to edit, search, print, or exit.
  3. Perform Operations: Use the chosen option to interact with the map.
  4. Exit: Exit the program when you're done.

Example Usage

Insert Items

The list is empty. Please insert items.
Enter the index ID: 101
Enter the item name: Apple
Do you want to add more items? (yes/no): yes
Enter the index ID: 102
Enter the item name: Banana
Do you want to add more items? (yes/no): no


Choose an operation:
1. Edit an item
2. Search for an item
3. Print the list
4. Exit
Enter your choice: 3

## Output
101 Apple
102 Banana

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages