Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string rA = "CDEABFGHIJKLMNOPQRSTUVWXYZ";
- string cA = "GKXCSLZUAHWDBMTYENJVPOIRFQ";
- string s;
- //cout << "enter string" << endl;
- //getline(cin, s);
- string scry;
- s = "HALLO";
- int max = s.size();
- for (int i = 0; i < max; i++)
- {
- for (int z = 0; z < 26; ++z)
- {
- if (s[i] == rA[z])
- {
- scry[i] = cA[z];
- }
- }
- }
- cout << scry << endl;
- string asda = "Test";
- if (asda[0] == 'T')
- cout << true << endl;
- cout << asda.size();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement