Try working off of something like this...
This should be somewhat close to what you're looking for... give it a go, change a few things... but it's a start.Code:cout << "Enter the sentence you wish to have encrypted." << endl; char x[256]; char str[51]; cin >> x; cout << endl; if(strlen(x)>50){ for(int i = 0; i < 50;i++) { str[i] = x[i]; } } else { for(int j = 0; j < strlen(x);j++) { str[j] = x[j]; } } cout << int(&str) << endl; system("pause"); }
Edit: Here it is... sort of.



LinkBack URL
About LinkBacks


