MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / vowel

Function vowel

CPP/char array/vowelfind.cpp:8–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#define mod 1000000007
7#define endl '\n'
8string vowel(string s){
9 int n;
10 n=s.size();
11 string str;
12
13 for (int i = 0; i < n; i++) {
14 if(s[i]=='a' || s[i]=='e' || s[i]=='i' || s[i]=='o' ||s[i]=='u')
15 str.push_back(s[i]);
16 }
17 return str;
18}
19int main(){
20 cin.tie(0)->sync_with_stdio(0);
21 string s;

Callers 1

mainFunction · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected