Fix index for vigenere

This commit is contained in:
datalore 2023-10-25 12:32:35 +02:00
parent 013c05f2dd
commit 8e0d2faefb

View File

@ -20,7 +20,7 @@ int main(int argc, char** argv)
int ki = 0;
for(int pi = 0; text[pi] != 0; ++pi)
{
if(text[i] == ' ')
if(text[pi] == ' ')
{
std::cout << ' ';
continue;