#include <iostream>
using namespace std;

int main()
{
	char b;
	char john [6] = {'a','e','i','o','u','\0'};
	
	cout<<"Please type a letter:";
	cin>>b;}
	
}

please complete this code. i need to use an array that will give an output telling that your input letter is a vowel or consonant.

Re: array showing if it is consonant or vowel 80 80

Nobody's going to edit your code for you; do your own homework.

Re: array showing if it is consonant or vowel 80 80
Re: array showing if it is consonant or vowel 80 80

First I would create a pass that only lets in letters a-z, perhaps maybe the function isalpha(). I can't remember what this returns so don't take my word for it.

Then test if it is a vowel or consonant.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.