This is a simple C program that translates English text into Morse code and vice versa.
-
To check whether MinGW is recognized by your system, use the following command:
gcc -v
-
use the play button in the top right corner to run and debug the code.
-
To compile the game, use the following command:
gcc -o Main Main.c
To run the compiled program:
./Main
If you encounter any issues setting up MinGW on Windows, refer to this guide: How to run a C program in Visual Studio Code
-
Text to Morse Code with Numbers: Input:
HELLO WORLD 2024
Output:
.... . .-.. .-.. --- / .-- --- .-. .-.. -.. / ..--- ----- ..--- ....-
-
Morse Code to Text with Numbers: Input:
.... . .-.. .-.. --- / .-- --- .-. .-.. -.. / ..--- ----- ..--- ....-
Output:
HELLOWORLD2024
Note: The program uses the standard Morse code chart to translate between English text and Morse code.
Standard C library: