0% found this document useful (0 votes)
22 views10 pages

Recipe Manager Project

Recipe finder details

Uploaded by

Sahil Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views10 pages

Recipe Manager Project

Recipe finder details

Uploaded by

Sahil Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Recipe Manager

Project
Welcome to the Recipe Manager Project, a dynamic C++
program that utilizes linked lists to efficiently store and
manage your favorite recipes.

By : Sahil Jain
UID : 22BCS13933
Project Overview

1 Dynamic Recipes 2 User-Friendly


Interface
The program uses
linked lists to create a An intuitive menu
flexible and scalable allows users to easily
recipe database. add, view, and search
for recipes.

3 Ingredient Search 4 Efficient Memory


Management
Search for recipes by
ingredients, allowing The program
users to find dishes dynamically allocates
they can make with and deallocates
available ingredients. memory for recipes,
ensuring efficient
resource usage.
Why Linked Lists?
Advantages Limitations

• Dynamic Size • Slower Search


• Easy Insertion/Deletion • One-Way Traversal
Core Components
RecipeNode Struct 1
This struct defines the structure of each
recipe, containing fields for name, ingredients,
and a pointer to the next node. 2 Functions

The program utilizes functions like


initializeRecipes, addRecipe, printRecipes, and
printMatchingRecipes to manage recipes.
RecipeNode Struct
struct RecipeNode {
string name;
string ingredients;
RecipeNode* next;
};
Adding and Displaying Recipes

addRecipe Function printRecipes Function

This function takes user input for recipe name and This function traverses the linked list, printing the
ingredients, creates a new RecipeNode, and inserts name and ingredients of each recipe.
it into the linked list.
Finding Recipes by
Ingredients
Input Ingredients Matched Recipes

Chicken, Onion, Garlic Chicken Soup, Chicken


Stir-Fry

Tomato, Basil, Mozzarella Tomato Basil Pasta,


Margherita Pizza
User Interaction - Menu

View All Recipes Add New Recipe

Displays all recipes in the Allows users to input a new


linked list. recipe and add it to the
linked list.

Search by Ingredients Exit

Prompts the user for Terminates the program.


ingredients and searches for
matching recipes.
Memory Management

1 Deallocation
When the program terminates, the
RecipeNode struct is used to iterate through
the linked list, deallocating memory for each
node.
Conclusion and Future
Enhancements
Project Conclusion Future Enhancements
This C++ program Potential improvements
successfully include adding sorting
demonstrates the functionality for recipe
effective use of linked lists, implementing
lists for managing persistent storage for
recipes dynamically. recipes using files, or
developing a more
advanced search
system.

You might also like