Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct bin{
- void encrypt_vector(vector<string>& crypt){
- stringstream ssv;
- for(unsigned int i = 0; i < crypt.size(); ++i){
- string word = crypt[i];
- int mod_word[word.size()];
- for(unsigned int x = 0; x < word.size(); ++x){
- stringstream ssl;
- string letter;
- char let = word[x];
- ssl << let;
- ssl >> letter;
- int num = encryption[letter];
- //modify_string = (modify_string * 10) + num;
- mod_word[x] = num;
- }
- copy(mod_word, mod_word+word.size(), ostream_iterator<int>(ssv));
- }
- ssv >> modify_string;
- }
- }binary;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement