Computer Science Canada Recognizing a space |
Author: | Tupacalypse_Vinsanity [ Thu Oct 13, 2005 6:17 pm ] | ||
Post subject: | Recognizing a space | ||
I need some help, the user enters a word and if its an odd amount of numbers itll output the middle letter and if its even itll output the 2 middle letters, but i dont know how to make it recognize spaces or if they enter 2 words how to output the middle letters of the 2 words.
|
Author: | Cervantes [ Thu Oct 13, 2005 6:47 pm ] |
Post subject: | |
I explain searching for a space in the String Manipulation tutorial. |
Author: | Tupacalypse_Vinsanity [ Sat Oct 15, 2005 6:45 pm ] |
Post subject: | Well |
I read over yours and im still having some trouble, can you clarify some points please? |
Author: | Cervantes [ Sat Oct 15, 2005 6:57 pm ] |
Post subject: | Re: Well |
Tupacalypse_Vinsanity wrote: can you clarify some points please?
Sure. What points? |
Author: | Tupacalypse_Vinsanity [ Sat Oct 15, 2005 8:02 pm ] | ||
Post subject: | Well | ||
I know how to make the program recognize a space but my problem now is that if they input more than 2 words, the middle letter might be a space, and i dont know how to get it to tell them the middle letter is a space, can you help? It also might be easier if we chatted over MSN, i added you a few days ago but i dont know if you have been on or you just didn't accept. My email is tupacalypse.now@gmail.com also here you can look at my code, i added alot of things lol:
|
Author: | Cervantes [ Sat Oct 15, 2005 8:08 pm ] | ||
Post subject: | Re: Well | ||
Tupacalypse_Vinsanity wrote: Ithe middle letter might be a space, and i dont know how to get it to tell them the middle letter is a space, can you help?
Why not just output "The middle letter is a space."?
Tupacalypse_Vinsanity wrote: It also might be easier if we chatted over MSN, i added you a few days ago but i dont know if you have been on or you just didn't accept. My email is tupacalypse.now@gmail.com I rarely go on MSN. You've got a much better chance at catching me on CompSci.ca's IRC channel. Server: AfterNET. Channel: #compsci.ca |