/* Wurst is the best. Create a function that takes a string and replaces every mention of any type of sausage with the German word "Wurst," unless—of course—the sausage is already a type of German "Wurst" (i.e. "Bratwurst", see below), then leave the sausage name unchanged * * | German Wursts | Convert to Wurst | * | ------------------ | ------------------ | * | Bratwurst | Kielbasa | * | Kochwurst | Chorizo | * | Leberwurst | Moronga | * | Mettwurst | Salami | * | Rostbratwurst | Sausage | * | ~ | Andouille | * | ~ | Naem | * | ~ | Merguez | * | ~ | Gurka | * | ~ | Snorkers | * | ~ | Pepperoni | * Append sausages from the "Convert to Wurst" column with "wurst". * Do not replace any German sausage with the word "Wurst". * The word "Wurst" must be title case. */ std::string wurstIsBetter(std::string str) { std::vector sausagelist = {"Kielbasa", "Chorizo", "Moronga", "Salami", "Sausage", "Andouille", "Naem", "Merguez", "Gurka", "Snorkers", "Pepperoni"}; // loops through my sausagelist and replaces each element with WURST for(int i=0;i