Im trying to create a searchable database, where it takes in 5 ingredients from the user as a string vector, then compares it to recipes from a text file. The textfile is converted to a string, then broken up into tokens into a string vector. When I try to search the ingredients through the tokens, it outputs every single recipe, even if the searched item is not in the recipe.
I checked and the tokenize function works perfectly
I also want to make sure that the loop will check through an ingredient in EVERY recipe (not just stop once its seen one) any tips on how to do that?
Prep Time: 5 minutes
Cook Time: 20 minutes
Total Time: 25 minutes
Servings: 2
Ingredients:
8 oz cheddar cheese
1 tablespoon cornstarch
¾ cup milk
2 packages ramen noodles
Directions:
1. Grate cheddar cheese and add with cornstarch into a small bowl
2. Combine with milk in a medium saucepan and cook on medium to low heat until consistent. Keep warm until serving.
3. In a separate pan boil ramen noodles. Set aside the included flavor packets.
4. Once boiling, drain the noodles and combine with cheese.
Recipe from Buzzfeed
__ #