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


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.


12/11/2020 3:47:00 AM


2 Answers

New Answer


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


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