Created
January 28, 2024 18:56
-
-
Save harsh9539/3f9a0846eb3587966702943c272123c5 to your computer and use it in GitHub Desktop.
tasks.json for cpp input output configure in mac
This file contains hidden or 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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "compile", | |
"type": "shell", | |
"command": "g++", | |
"args": [ | |
"-std=c++17", | |
"-o", | |
"${fileBasenameNoExtension}", | |
"${file}" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": false | |
} | |
}, | |
{ | |
"label": "compile and run", | |
"type": "shell", | |
"command": "g++ -std=c++17 -o ${fileBasenameNoExtension} ${file} && ./${fileBasenameNoExtension} < input.txt > output.txt", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment