improvement of Imladirs algorithm- C

the below codes is the one you have improved for me which is return first letter and 3 digit numbers such as Smith is converted to S520: HOWEVER THIS NEW REEQUIREMENT NEED TO IMPROVE IS TO HAVE all the letters of names and the vowels in the name should be covert to "a" for example "aeiou" must converrt to "a" apart from the last letter of the name (cut the last letter of the name if it is "vowel")
so smith should be "smath" p.s. don't cut off the first letter which begin with "vowel)

Imladris
sorry I confused a bit with my requirement- you are absolutely right !!!just changed only vowels into "a" but if thgere is a duplicated of "a" just get only one a..(example is below -pereira -->parar (not paraar)

also if there are 2 vowels next to each other like " pareira" the code should contain only 1 "a" so that it should be "parar"

after compare name entering from user with datafile (names.dat) the program
-search for name matching from datafile , and return matched name and also number of matched names as well...(no different between small and capital letters)

I have been testing any code I post for you, and it was working OK against my sample.
Against your surnames.dat, comparing smith, I get 5 matches: all but smyth and smythe. This is because, at present, 'Y' is not in the vowel list. That would be a simple addition.

Could you verify your result? If you continue to get the wrong result, we will have to try some debugging.

ah ha I see...
I did test with a huge datafile which contained too many diferent surnames..but when i cut down only 10 starting with basename "smith" it works pretty well...but am just wondering why it didn';t work with a huge data containing about 1000 names...never mind, you have been working hard on it..and no doubt to accept this as one of excellent answer..

I haven't got any clue what the problem was...
so just sent you my datafile wich contains 100 names as I use to mention...
it contains basenames of different 5 types of names: brown, jones, smith, williams, moran

you could try "smith" or "williams" ..

hope you could find something mistake for me and get it working again...!!

Featured Post

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control. For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net. To view more iPhone tutorials, visit www.sdkexpert.net.
This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…