CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 16

Threaded View

  1. #3
    Join Date
    Apr 1999
    Posts
    27,449

    Re: how to count double characters ?

    Quote Originally Posted by bekim View Post
    lol i was waiting e replay " We wont do your homework for you " BTW .
    Can you help me only with this part : I have this code which find a letter a and A . Now how to write like this but to detect the double letters :
    Put away the programming for now.

    Write down exactly the steps, even if it's in English, to traverse a string, searching for double letters. Otherwise, you're trying to conjure up magic by writing code, and programming doesn't work that way. Always plan what you're going to do before writing a single line of code.

    You encounter a letter, is it a double, yes, no, etc. That is what you're supposed to plan out on paper before you write any function.

    Regards,

    Paul McKenzie
    Last edited by Paul McKenzie; May 21st, 2012 at 11:32 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured