| Viewing Single Post From: Transposition Cipher Cracker (c++) | |
|---|---|
| jdege | Jun 19 2009, 04:34 PM |
|
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. | |
![]() |
|
| Transposition Cipher Cracker (c++) · General | |




![]](http://209.85.122.85/static/1/pip_r.png)


4:28 PM Nov 28