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.

11th Dec 2020, 3:47 AM
2 ответов
+ 2
maybe: if (isVowel(i)) // remove i <— vowel
11th Dec 2020, 4:19 AM
+ 1
TeaserCode Noone is here to write code for you. If you show some efforts then we can help.
11th Dec 2020, 3:54 AM
A͢J - avatar