Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Last active July 9, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/98a27c0b13674786dafc4c73239dba09 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/98a27c0b13674786dafc4c73239dba09 to your computer and use it in GitHub Desktop.
for(i = 0; i < eingabe.length(); i++){
int j = 0;
bool weiter = true;
while(weiter && j < 42){
if(grossbuchstaben[j] != eingabe[i] && kleinbuchstaben[j] != eingabe[i]){
j++;
}
else{
weiter = false;
}
}
if (j < 42){
ausgabe += morsezeichen[j] + " ";
}
}
cout << ausgabe;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment