Ad
  • Custom User Avatar

    check count_if function. ch is a bool value, and when ch is true, the function would work. Combined with switchcase it lets you to count the number of a e i o u.
    if you are confused about the structure [](){}, check out lambda in c++.