https://github.com/parthasdey2304/c-coderunner
This is just a command line tool to help me run C and C++ programs easily with one click.
https://github.com/parthasdey2304/c-coderunner
Last synced: about 1 year ago
JSON representation
This is just a command line tool to help me run C and C++ programs easily with one click.
- Host: GitHub
- URL: https://github.com/parthasdey2304/c-coderunner
- Owner: parthasdey2304
- License: mit
- Created: 2024-01-03T13:22:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-24T06:43:22.000Z (about 2 years ago)
- Last Synced: 2025-03-11T14:55:16.150Z (about 1 year ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
C CodeRunner
I made this Script for myself to get my C programs compiled and executed in a single line on Linux
# Pre-Requisites
+ `git` must be installed on your system!!
# Installation
+ Clone the repo `c-coderunner` :
``` sh
git clone https://github.com/parthasdey2304/c-coderunner.git
```
+ Open the repo :
``` sh
cd c-coderunner
```
+ Directory structure :
``` sh
$ tree
.
├── LICENSE
├── README.md
├── remove.sh
├── crun
└── setup.sh
1 directory, 5 files
```
+ Make the `setup.sh` script executable :
``` sh
chmod +x setup.sh
```
+ Run the `setup.sh` script :
``` sh
./setup.sh
```
### The C CodeRunner is successfully installed on your system!
# Usage
+ First write the code with .c extension, suppose `file_name.c` :
``` c
// cat file_name.c
#include
int main() {
printf("Hello world!");
return 0;
}
```
+ Use the command `crun` followed by the filename :
``` sh
crun file_name.c
```
+ See the output :
``` sh
┌──(partha㉿xiaomi)-[/mnt/d/programming/learning/c]
└─$ crun file_name.c
Compilation successful. Running the program:
Output:
Hello world!
```
# Removal
+ To remove the c-coderunner run the `remove.sh` file.
``` sh
sh remove.sh
```
+ The C CodeRunner has been successfully removed with all the dependencies.
# Contributing
We welcome contributions from the community! We welcome your contributions to improve the project. If you'd like to contribute to c-coderunner, please read the following guidelines on how to contribute:
+ Fork the repository and create a new branch for your changes.
+ Make your changes to the code.
+ Test your changes thoroughly.
+ Commit your changes with a clear and descriptive message.
+ Push your changes to your fork.
+ Create a pull request and wait for me to verify and then merge it to the main branch.
# THANK YOU COMMUNITY!!!!