Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. start = 0;
  2. for(int n = 0; n < stringLength; n++)
  3. {
  4. anotherString = morseToEnglish[n];
  5. if(anotherString == " ")
  6. {
  7. finish = n;
  8. yetAnotherString = morseToEnglish.substr(start, finish);
  9. for(int i = 0; i < 39; i++)
  10. {
  11. if(yetAnotherString == morseCode[i])
  12. {
  13. cout << alphabet[i];
  14. yetAnotherString = "";
  15. }
  16. }
  17. }
  18. start = finish;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement