Advertisement
Krefeld187

Untitled

Jan 17th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string rA = "CDEABFGHIJKLMNOPQRSTUVWXYZ";
  8. string cA = "GKXCSLZUAHWDBMTYENJVPOIRFQ";
  9. string s;
  10. //cout << "enter string" << endl;
  11. //getline(cin, s);
  12. string scry;
  13. s = "HALLO";
  14. int max = s.size();
  15. for (int i = 0; i < max; i++)
  16. {
  17. for (int z = 0; z < 26; ++z)
  18. {
  19. if (s[i] == rA[z])
  20. {
  21. scry[i] = cA[z];
  22. }
  23. }
  24. }
  25. cout << scry << endl;
  26.  
  27. string asda = "Test";
  28. if (asda[0] == 'T')
  29. cout << true << endl;
  30. cout << asda.size();
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement