I am trying to encode and decode user inputted text, and from a file. I have the "language" all written, but I don't know how I would apply it to the code. I have written the general layout for the file, it just doesn't do what I want it to. Any help would be appreciated. :D

04-10-2005

neandrake

Quote:

dable_yayooh == w
yayooh == u

Uhm, I pronounce my U's and W's as "yoo" and "dub-ul yoo". Your system though, w/e.

Quote:

I have the "language" all written, but I don't know how I would apply it to the code.
it just doesn't do what I want it to.

Just looking at your code briefly, and your vague question, what you want to do is be able to open the alphabet file and decode text/files using it?

Well, first thing you would have to do is load the alphabet file, parse it line by line, loading it into some kind of data structure, then ask for the input, text/file. As you read through the input, you need to search your structure and find the right text to encode/decode the input.

04-10-2005

mrafcho001

1 Attachment(s)

i made something like that not too long ago

1337Translato!
lol dont make fun of me plz

here is the code for it.. maybe it would help

BTW it has Binary translation too:

04-10-2005

Asbestos

I made it "yayhoo" because "you" would be easier to understand.
Thank you mrafcho001. That really helped a lot!

04-10-2005

mrafcho001

Sure man.. IM if you need more help

04-10-2005

Lithorien

Quote:

Originally Posted by mrafcho001

i made something like that not too long ago

1337Translato!
lol dont make fun of me plz

here is the code for it.. maybe it would help

BTW it has Binary translation too:

You realize every place you did an "if (letter == symbol) cout << symbol, L33tblah << symbol, you could have just had a global "else" clause that did cout << letter and L33tblah << letter?