Welcome Guest [Log In] [Register]
Viewing Single Post From: Transposition Cipher Cracker (c++)
jdege
Member Avatar
Elite member
[ *  *  *  *  * ]
I've always found using pointer arithmetic that way to be confusing - easy to get wrong, and hard to tell when you had.

There's no question, though, that it's hugely faster than reordering the characters.

I find, when I do write code like this, I create about three times as much test code, to make sure I'm doing it right, than I do code to actually address the problem. I used to throw that test code away, when I was done, to leave something simple and clean like this. I no longer do so. I find that it can be very useful to keep it around, to make sure I don't break things the next time I need to make a "quick" modification.
When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.
Offline Profile Quote Post
Transposition Cipher Cracker (c++) · General