[TIB] Re: Character Substitution?


[Prev][Next][Index][Thread]

[TIB] Re: Character Substitution?




--- ffolkes <ffolkes@ffolkes.com> wrote:
> 
> Hello-
> 
> I'd like to make a program to substitute characters from a string,
> i.e.:
> 
> g = t
> o = r
> a = b
> t = v
> s = n
> 
> String: "goats"
> Output of Program: "trbvn"

You could do something like

Lbl ASD
read first Char of String1 -> Char1
if Char1 = g then
t + String2 -> String2
else if Char1 = o then
r + String2 -> String2

...

else

Char1 + String2 -> String2
Goto ASD


You will have to work with the Syntax but something like that should
work.  Does this help, i can try to write something else up with
correct notation if necessary.

Kevin

=====
Nivek
Nivek_ent@yahoo.com
http://www.NivekEnterprises.com
A Great Search Engine http://www.lotrfreak.com
Get paid cash every time you receive email!
Sign up FREE at: http://www.MintMail.com/?m=220009

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Follow-Ups: References: