Thread: Beginner =(

  1. #1
    Registered User
    Join Date
    Nov 2005

    Unhappy Beginner =(

    Well i'm working my way through about 5 different books on C here, all going well or so i thought.
    It's come to arrays, strings, pointers and so on.. and argh!

    How would one go about writing a function to accept a name entered from a keyboard and removing any double letters in it. For instance The name Lloyd would become Loyd. (I'm writing a program similar to that of SOUNDEX, where names are searched by sounding the same rather than spelt the same and turned into numeric codes.

    Any advice at all would be appreciated hugely. Thanks.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Work on the basics of arrays first. Make programs to do:

    1 - Run through each element of an array and display it.
    2 - Run through each element of an array and change it.
    3 - Run through an array and display each element of a specific value.
    4 - Run through an array and change all of one specific value.
    5 - Run through an array and remove all of a specific value, by shifting the elements after it down one, and setting the end to something to denote "not used".

    Get a handle on how arrays work, and this should be an easy task after you're able to do the above. Then if you're stuck, post your attempt.

    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Same old beginner question...
    By Sharmz in forum C Programming
    Replies: 15
    Last Post: 08-04-2008, 11:48 AM
  2. What are some good beginner programs I shouold make?
    By oobootsy1 in forum C# Programming
    Replies: 6
    Last Post: 08-09-2005, 02:02 PM
  3. Best Free Beginner Online Books/Tutorials?
    By Zeusbwr in forum C++ Programming
    Replies: 2
    Last Post: 10-12-2004, 05:52 PM
  4. Windows programming for beginner (Absolute beginner)
    By WDT in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2004, 11:21 AM