View Single Post
Old May 8th, 2006, 10:20 AM   #6
lilmul123
Newbie
 
Join Date: Mar 2006
Posts: 19
Rep Power: 0 lilmul123 is on a distinguished road
well, here's what I have thus far. can you tell me if i'm on the right track or not? i dont exactly know how to use the isdigit or isalpha statements.

#include "conio.h"
#include "stdio.h"
#include "iostream.h"
#include "ctype.h"

void main()
{
char addup,dothis;
int lettercnt;
clrscr();
cout << "Please enter a bunch of characters, puncuation, or numbers: \n";
cin >> addup;
addup = getch();
{
switch(addup)
{
case 'a'||'e'||'i'||'o'||'u':
	lettercnt++;
	break;
}
{
cout << "You typed this many characters: " << lettercnt;
}
getch();
}
}
lilmul123 is offline   Reply With Quote