
-----------------------------------
qwertyuiop
Sun Nov 05, 2006 1:10 pm

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

-----------------------------------
richcash
Sun Nov 05, 2006 5:17 pm


-----------------------------------
Read Btw, that's an extremely creative username. :wink:

-----------------------------------
TokenHerbz
Mon Nov 06, 2006 9:23 am


-----------------------------------
ok, i dont get his name...

maybe its late, maybe im tired, but care to explain the creativity of it?

-----------------------------------
Clayton
Mon Nov 06, 2006 10:43 am


-----------------------------------
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)
