Advertisement
RnD

Decoder's main func

RnD
Apr 15th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. void decoder(string text){
  2.     int smth=0;
  3.  
  4.         if(text.length()%8==0){
  5.             sk = text.length()/8;
  6.             for(int m=1;m<=sk;m++){
  7.                 hlp = text.substr(smth,8);
  8.                 alphabet(hlp);
  9.                 smth+=8;
  10.             }
  11.         }
  12.         else{
  13.             cout<<"\nCouldn't decode the text, please check it and try again.";
  14.         }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement