Fixed typos

This commit is contained in:
2021-12-31 00:27:06 -05:00
parent ca22afcdce
commit 3c15c1e1d0
3 changed files with 7 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ void Autokey::encodeSet(std::string key, std::string input){
//This will take a long time if the keyword in long //This will take a long time if the keyword in long
//Remove the last letter in the string until it is the same size as the input //Remove the last letter in the string until it is the same size as the input
//TODO: Why not just use substring?
while(key.size() > input.size()){ while(key.size() > input.size()){
key.erase(key.end() - 1); key.erase(key.end() - 1);
} }

View File

@@ -48,7 +48,7 @@ void Playfair::createGrid(){
bool found = false; bool found = false;
row = column = 0; row = column = 0;
//Add any new leters from the keyword to the grid //Add any new letters from the keyword to the grid
//If you reach row 5 then the entire grid has been filled //If you reach row 5 then the entire grid has been filled
char current; char current;
for(unsigned int cnt = 0;(cnt < keyword.size()) && (row < 5);++cnt){ for(unsigned int cnt = 0;(cnt < keyword.size()) && (row < 5);++cnt){