Dealt with issue #5

This commit is contained in:
amazing-username
2017-04-09 19:28:45 -05:00
parent 3f5d67e4cf
commit 063b89cd56
2 changed files with 8 additions and 3 deletions
+5 -2
View File
@@ -21,8 +21,10 @@ void GenerateKeys::populateDecryptedValues()
//std::cout << decryptedCharacters[number] << " ";
}
}
decryptedCharacters[32] = (char) 32;
//std::cout << std::endl;
decryptedCharacters[whiteSpaceCharacter] = ' ';
//decryptedCharacters[whiteSpaceCharacter] = ' ';
//std::cout << "Whitespace character" << decryptedCharacters[whiteSpaceCharacter] << "d" << std::endl;
}
void GenerateKeys::populateEncryptedValues()
{
@@ -31,6 +33,7 @@ void GenerateKeys::populateEncryptedValues()
encryptedCharacters[decryptedCharacters[key]] = key;
//std::cout << encryptedCharacters[decryptedCharacters[key]] << " ";
}
encryptedCharacters[decryptedCharacters[startingCharacter]] = startingCharacter;
encryptedCharacters[(char) 32] = 32;
//encryptedCharacters[decryptedCharacters[startingCharacter]] = startingCharacter;
//std::cout << std::endl;
}