Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
556 B
8
Indexable
Never
#include "functions.hpp"
#include <string>
// Your function definitions should go in this source file.

bool IsValidLetter(char letter) {
  std::string valid_letters = "\' aeioupkhlmnw";

  for (unsigned long i = 0; i < valid_letters.length(); i++) {
    if (letter == valid_letters[i]) {
      return true;
    }
  }

  return false;

}

bool IsVowel(char letter) {
  std::string valid_letters = "aeiou";

  for (unsigned long i = 0; i < valid_letters.length(); i++) {
    if (letter == valid_letters[i]) {
      return true;
    }
  }

  return false;

}