help me!
Author |
Message |
baby girl
|
Posted: Tue Dec 10, 2002 9:31 am Post subject: help me! |
|
|
write a program to output the first and last letters of a series of words. a sample execution window might be
ex.enter word :pig
PG
enter word :dog
dg |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Tue Dec 10, 2002 12:11 pm Post subject: (No subject) |
|
|
its all about string selection.
text(index) where index is the integer of what letter to put. so
text(1) will put first letter and text(*) will put last letter.
text(2..*-1) will put everything but 1st and last |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
baby girl
|
Posted: Fri Dec 13, 2002 10:45 am Post subject: (No subject) |
|
|
i get the t(1) and the(*)
by everytime i put to run there is a error
can you just post the code
thank hun |
|
|
|
|
|
Tony
|
|
|
|
|
|
|