Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- using namespace std;
- int main ()
- {
- string Str="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
- string Chars="!@#$%^&*()_+-/.<>";
- string Numbers="1234567890";
- string inputStr;
- cin>>inputStr;
- for (int i=0;i<=inputStr.length();i++)
- {
- for(int j=0;j<=inputStr.length();j++)
- {
- if (inputStr[i]==Str[j]) cout<<Str[j];
- else if (inputStr[i]==Chars[j]) cout<<Chars[j];
- else if (inputStr[i]==Numbers[j]) cout<<Numbers[j];
- }
- }
- }
Add Comment
Please, Sign In to add comment