// Cgeck if char is a vowel of const
// Date 21:40 10/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

int main(int argc, char *argv[]){

	char *vmap = "aeiou";
	char *ptr = 0;
	char c = '\0';

	cout << "Enter a single letter: ";
	cin >> c;

	//Convert to lowercase easy matching.
	c = tolower(c);
	ptr = strchr(vmap, c);

	if (ptr != NULL){
		cout << "You entered a vowel" << endl;
	}else{
		cout << "You entered a const" << endl;
	}

	system("pause");
	return 0;
}