Advertisement
SomeBody_Aplle

Untitled

Feb 4th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. AnsiString word = Edit1->Text;
  2. AnsiString result = "";
  3. for(int i = 1; i < word.Length() + 1; i++)
  4. {
  5. bool isAdded = False;
  6. for(int j = 0; j < 33; j++)
  7. {
  8. if( word[i] == no_shifr_up[j] )
  9. {
  10. result += AnsiString(with_shifr_up[j]);
  11. isAdded = True;
  12. break;
  13. }
  14. else if( word[i] == no_shifr_low[j] )
  15. {
  16. result += AnsiString(with_shifr_low[j]);
  17. isAdded = True;
  18. break;
  19. }
  20. }
  21. if( !isAdded )
  22. {
  23. result += AnsiString(word[i]);
  24. }
  25. }
  26. Label2->Caption = result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement