char(32)
char(126)
1234567891011121314151617181920212223242526272829303132333435363738394041424344
#include <iostream> #include <string> using namespace std; int main() { string test = "ghik"; string crack = ""; for(int i = 0; i < test.length(); ++i) crack += 'a'; // for(int i = 0; i < test.length(); ++i) // { for(int j = 32; j < 126; ++j) { crack[0] = j; for(int k = 32; k < 126; ++k) { crack[1] = k; for(int l = 32; l < 126; ++l) { crack[2] = l; for(int m = 32; m < 126; ++m) { crack[3] = m; if(crack == test) { cout << "match!\n"; cout << crack << endl; return 0; } } } } } // } return 0; }