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 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
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.  |
|
|
|
|
 |
TokenHerbz

|
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? |
|
|
|
|
 |
Clayton

|
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) |
|
|
|
|
 |
|
|