Advertisement
Guest User

Untitled

a guest
Sep 9th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.87 KB | None | 0 0
  1. //  alphabet = "`1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:ZXCVBNM<>?";
  2. #include <iostream>
  3. #include <string>                        
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     string alphabet;
  10.     alphabet = "1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM?-=;,./!@#$%^&*()_+";
  11.  
  12.     int n = alphabet.length();
  13.  
  14.     cout << n << endl;
  15.  
  16.     for each (char a in alphabet)
  17.     {
  18.         for each (char b in alphabet)
  19.         {
  20.             for each (char c in alphabet)
  21.             {
  22.                 for each (char d in alphabet)
  23.                 {
  24.                     for each (char e in alphabet)
  25.                     {
  26.                         for each (char f in alphabet)
  27.                         {
  28.                             for each (char g in alphabet)
  29.                             {
  30.                                 for each (char h in alphabet)
  31.                                 {
  32.                                     cout << a << b << c << d << e << f << g << h << endl;
  33.                                 }
  34.                             }
  35.                         }
  36.                     }
  37.                 }
  38.             }
  39.         }
  40.     }
  41.  
  42.     system("Pause");
  43.     return 0;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement