Bool function as a parameter. | Sololearn: Learn to code for FREE!

-2

Bool function as a parameter.

If we have a problem when we want to remove all vowels in string. One of the function we have to write is bool function where we use switch to defined which letters are vowels. Then we use bool function in another function in which we remove all vowels. And now there is a trouble where I am stoped because I don't know how to connect these two functions together. Please can anybody write this code so I finally get it. https://code.sololearn.com/c25OKX843DA8/?ref=app

c++

12/11/2020 3:47:00 AM

TeaserCode

2 Answers

New Answer

+2

maybe: if (isVowel(i)) // remove i <— vowel

+1

TeaserCode Noone is here to write code for you. If you show some efforts then we can help.