See this link for the given assignment.
note: on the last page the output aa4bcdd0cc1 is actually supposed to be aa3bcdd1cc1c.
I have no idea why my encoder function doesn't work. No matter how I try to do it (I've tried strings, arrays - everything), the function copies the input exactly instead of encoding it. I followed the given pseudo code, and it had no problems for the decoder, but I must be doing something wrong for the encoder. Any advice would be appreciated
The Attempt at a Solution
See the attached source code.
20.8 KB Views: 104
Last edited by a moderator: