Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,309 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,067 people online right now. Registration is fast and FREE... Join Now!




Character counter and determiner

 
Reply to this topicStart new topic

Character counter and determiner, Character counter and determiner

charmed
post 15 Mar, 2008 - 12:44 AM
Post #1


New D.I.C Head

*
Joined: 15 Mar, 2008
Posts: 1

[code]
# include<stdio.h>
# include<conio.h>

main()
int vowel=0,consonant=0,number=0;
clrscr

printf("\n\n");
printf("\n"CHARACTER DETERMINER Version 1.0");
printf("\n");
printf("Enter a Phrase :");
string sent=in.next();
char sentence1[]=sent.tocharArray();
for (int index=0;index<sentence1.length;index++)
scanf("%d%d%d",consonant,vowel,number");

{
switch(sentence1[k])
{
case 'a':
case 'e':
case'i':
case'o':
case'u':
case'A':
case'E':
case'I':
case'O':
case'U';
vowel++;
case'0':
case'1':
case'2':
case'3';
case'4';
case'5':
case'6':
case'7':
case'8':
case'9':
numbers++;
break;
default;
consonant++;
break;
k++;

}
printf("\n\n");
printf("=================")
print("DETAILED RESULT");
printf("=================");
printf("\n);
printf("there are "+%d+"vowel(s) in your sentence.");
printf("There are "+%d+"consonant in your sentence.");
printf("There are "+%d+"number in your sentence.");
printF("\n");

getche();
}
User is offlineProfile CardPM

Go to the top of the page

bhandari
post 15 Mar, 2008 - 09:46 AM
Post #2


D.I.C Addict

Group Icon
Joined: 31 Jan, 2008
Posts: 747



Dream Kudos: 900
My Contributions


thanks for the program..
now what......
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 02:13AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month