Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start = 0;
- for(int n = 0; n < stringLength; n++)
- {
- anotherString = morseToEnglish[n];
- if(anotherString == " ")
- {
- finish = n;
- yetAnotherString = morseToEnglish.substr(start, finish);
- for(int i = 0; i < 39; i++)
- {
- if(yetAnotherString == morseCode[i])
- {
- cout << alphabet[i];
- yetAnotherString = "";
- }
- }
- }
- start = finish;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement