|
-
May 21st, 2012, 11:29 AM
#3
Re: how to count double characters ?
 Originally Posted by bekim
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|