noob question about string manipulation
Author |
Message |
qwertyuiop
|
Posted: Sun Nov 05, 2006 1:10 pm Post subject: noob question about string manipulation |
|
|
hey guys im new to turing and i was wondering if any one could help me with a few problems i have...
first is i would like to get a sentence and display it backwards, i.e compscie.ca --->ac.eicspmoc
second i would like to display only the vowels in a sentence, i.e
compscie.ca ---> oiea
thats all for now, thanks guys |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
richcash
|
Posted: Sun Nov 05, 2006 5:17 pm Post subject: (No subject) |
|
|
Read this and see if you get it.
Btw, that's an extremely creative username. ![Wink Wink](http://compsci.ca/v3/images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
TokenHerbz
![](http://compsci.ca/v3/uploads/user_avatars/717170395558e628d9452b.jpg)
|
Posted: Mon Nov 06, 2006 9:23 am Post subject: (No subject) |
|
|
ok, i dont get his name...
maybe its late, maybe im tired, but care to explain the creativity of it? |
|
|
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Mon Nov 06, 2006 10:43 am Post subject: (No subject) |
|
|
it's the top row on the keyboard....
the creative comment was a sarcastic one
on topic:
if you read that tutorial, you should get all you need, basically break the problem down into smaller problems:
- How to get the string backwards (ie taking each character from the end backwards)
- Putting the string together
- Displaying it
- Finding the vowels
- Exceptions on unexpected input
- Putting the string together
- Display
Learning to problem solve is a major thing to learn for programming (and many other things, this is why someone who is good at math can generally be a good programmer, math students are typically the better problem solvers) |
|
|
|
|
![](images/spacer.gif) |
|
|