Talk:Strcmp

From Wikipedia, the free encyclopedia

i have program but want it to write in c only can i get help the program is 

write a program to print only ovels ie(a,e,i,o,u) of a string and take the string from the keyboard

Talk pages are for discussing the article, not for asking for help on a subject. I recommend you look around for a programming forum to ask this question on.
I can also tell you that strcmp won't do what you want. I'm not an expert on the subject, so I don't know if there are any more efficient methods (there probably are), but try iterating over the string and using the == operator to compare the character at the current position to the vowel characters. Another way would be to use a regular expression library to either match the vowels, or to cull out non-vowel characters, but this may add licensing issues, and could well be less efficient than other methods. --Link (tcm) 07:44, 10 July 2007 (UTC)