Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int indexHaslo = std::distance(alfabet.begin(), std::find(alfabet.begin(), alfabet.end(), haslo[licznik]));
- int indexTekst = std::distance(alfabet.begin(), std::find(alfabet.begin(), alfabet.end(), sentence[i]));
- int indexAlfabet = indexHaslo + indexTekst;
- if (indexAlfabet >= 36)
- indexAlfabet = indexAlfabet % 36;
- szyfrTekst += alfabet[indexAlfabet];
- ++licznik;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement