Skip to content

Simple 1-line command to compile and execute CPP programs using g++.

Notifications You must be signed in to change notification settings

footedroom575/candr_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CANDR - Compile And Run

CANDR is a very basic Linux shell script to compile and execute C++ (.cpp) or Java (.java) files.

It executes the CPP/Java Program immediately if it gets compiled successfully. Otherwise, it shows the output or the compilation error.

Installation:

Download this utility first.

Using Git:

git clone https://github.com/footedroom575/candr_cpp.git

or download as zip from "Code" -> "Download ZIP" option above.

Extract the zip and run the following:

To get to candr_cpp, run:

cd candr_cpp

To install script, run:

sudo bash ./install.sh

Usage:

Run this command in the working directory where (.cpp) file is stored.

candr filename

It will execute the file as g++ filename.cpp -o filename And will later execute it as ./filename

Note: Don't add .cpp at the end of the filename, it does this work for you :)

For Java, you can use -j flag.

Verify Installation

Run candr example after installation.

Output: Exmaple image

Issues/Feature Requests

Please report any issues with the script in Issues and to request a new feature, use the title "Feature Request/....." in Issues.

For more information, use candr --help

About

Simple 1-line command to compile and execute CPP programs using g++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages