Search through a vector? : I would like a method to search through my vector. Find a matching string when taken from the user's input. Then output using the second block of code.

Here's my code:

    void Ingredient::database(Ingredient &object){

    Ingredient item1("White Cap", "Weakness to Frost", "Fortify Heavy Armor", "Restore Magicka", "Ravage Magicka");

    Ingredient item2("Wisp Wrappings", "Restore Stamina", "Fortify Destruction", "Fortify Carry Weight", "Resist Magic");

    Ingredient item3("Yellow Mountain Flower", "Resist Poison", "Fortify Restoration", "Fortify Health", "Damage Stamina Regen");


    std::vector< Ingredient* > satchel;

    satchel.push_back(&item1);  

    satchel.push_back(&item2);

    satchel.push_back(&item3);


    }
And here's the output I wish to display:

>

    void Ingredient::displayItems(){

    std::cout << '\n';

    std::cout << "Ingredient: " << iName << '\n';

    std::cout << "Primary Effect: " << pAttr << '\n';

    std::cout << "Secondary Effect: " << sAttr << '\n';

    std::cout << "Tertiary Effect: " << tAttr << '\n';

    std::cout << "Quaternary Effect: " << qAttr << '\n';


    }