Created
November 9, 2019 13:40
-
-
Save rahgurung/5d6f801b9fd370deaaa1ac4465cd61fe to your computer and use it in GitHub Desktop.
script for c/c++ environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make() { | |
if [ $1 = "run" ]; then | |
g++ -Wall -o "$2" "$2".cpp | |
./"$2" | |
printf "\n" | |
else | |
g++ -Wall -o "$1" "$1".cpp | |
printf "Success! \n" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment