https://github.com/almax-git/binary_converter_using_c_language
Binary to Decimal Converter us C language
https://github.com/almax-git/binary_converter_using_c_language
binary c
Last synced: over 1 year ago
JSON representation
Binary to Decimal Converter us C language
- Host: GitHub
- URL: https://github.com/almax-git/binary_converter_using_c_language
- Owner: ALmax-git
- License: mit
- Created: 2024-10-17T09:56:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-17T10:15:20.000Z (over 1 year ago)
- Last Synced: 2025-02-09T04:17:16.278Z (over 1 year ago)
- Topics: binary, c
- Language: C
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Binary Converter
Binary Converter is a C-based application using GTK for creating a graphical user interface (GUI) to convert binary numbers into their decimal equivalents. This advanced converter is built by **ALmax** to provide an interactive and user-friendly experience, with features such as dark mode, real-time conversion on input events, and a built-in console for process logs.
## Features
- **Dark Theme**: The application comes with a sleek dark theme to reduce eye strain and provide a modern interface.
- **Binary-to-Decimal Conversion**: Input binary numbers (0s and 1s) and instantly convert them to decimal format.
- **Input Validation**: Only binary numbers (0 and 1) are accepted in the input field to ensure accuracy.
- **Interactive UI Elements**:
- **Decimal Output Area**: A highlighted square area to display the conversion results.
- **Convert Button**: Manual conversion option for binary-to-decimal conversion.
- **Process Console**: A console at the bottom of the app to display the process, logs, and any errors.
## Screenshots

## Installation
### Requirements
- GCC (GNU Compiler Collection)
- GTK+ 3.0
- A Linux distribution (developed and tested on Kali Linux)
### Steps to Run
1. Clone the repository:
```bash
git clone https://github.com/ALmax-git/binary_converter.git
```
2. Navigate to the project directory:
```bash
cd binary_converter
```
3. Compile the program:
```bash
gcc `pkg-config --cflags gtk+-3.0` -o bin_converter_v2 bin_converter_v2.c `pkg-config --libs gtk+-3.0`
```
4. Run the application:
```bash
./bin_converter_v2
```
## How It Works
- Enter a binary number (e.g., 1011) into the input field.
- The decimal equivalent is displayed in the output area.
- A console below logs the conversion process and any errors.
- The convert button can be used for manual conversion.
## Project Structure
```
.
├── bin_converter_v2.c # Main C source file
├── README.md # Project documentation
└── screenshot.png # App screenshot (to be added)
```
## Contributing
We welcome contributions! If you’d like to contribute:
- Fork this repository
- Make your changes
- Submit a pull request
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
---
Made with ❤️ by **ALmax** and **Others** for the C programming and GTK GUI community. Let's make **ALmax-git** a better place for learners! 🎉