瀏覽代碼

Improved MANGLER::MANGLER so that Position is set in the initialization list.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@14 d34b734f-a00e-4b39-a726-e4eeb87269ab
wx
madscientist 15 年之前
父節點
當前提交
f36bff0262
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      mangler.cpp

+ 4
- 4
mangler.cpp 查看文件

@@ -97,10 +97,10 @@ unsigned char MANGLER::Decrypt(unsigned char i) {
return g; // to demodulate the input.
} // then drive the engine
// with the original input.
MANGLER::MANGLER(void) {
for(short c = 0;c<256;c++) // The default constructor sets
Fill[c]=(unsigned char) c; // the key to the root primary
Position = 0; // value and Position to 0.
MANGLER::MANGLER(void) : Position(0) { // The default constructor sets
for(unsigned int c = 0;c<256;c++) // the key to the root primary
Fill[c]=(unsigned char) c; // value and Position to 0.
}



Loading…
取消
儲存