Skip to content

MsVron/Morse-Code-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Morse Code Converter

This is a simple C program that allows you to convert text to Morse code and vice versa.

Prerequisites

You need to have a C compiler (e.g., gcc) installed on your system to compile the program.

Compilation

  1. Open a terminal.

  2. Navigate to the directory where the program is located.

  3. Compile the program using the following command:

    gcc morse_text_converter.c -o morse_text_converter
    

Usage

  1. In the terminal, navigate to the directory containing the compiled program.

  2. Run the program using the following command:

    ./morse_text_converter
    
  3. You will be prompted to enter a string (text or Morse code).

Converting Morse Code to Text

To convert Morse code to text:

  1. Input the Morse code using dots, dashes, and spaces. For example, to convert ".. .-.. --- ...- . -.-- --- ..-" to text (which represents "I LOVE YOU"), enter:

    .. .-.. --- ...- . -.-- --- ..-
    

Converting Text to Morse Code

To convert text to Morse code:

  1. Simply enter the text you want to convert. For example, to convert "HELLO" to Morse code, enter:

    HELLO
    

The program will display the converted output accordingly.

About

Converts between text and Morse code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages