Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this is the configuration for sublime text 3 to use C++11/14 and file input/output system
- first ensure that your codeblocs bin path is added to Path of your pc..
- and you can use this types of Main function
- int main(){
- #ifdef LOCAL
- freopen("input.txt", "r", stdin);//program will take input from this file
- freopen("output.txt", "w", stdout);//output will be printed here
- #endif
- //ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
- return 0;
- }
- //this is the format for build file name it like C++_RUN
- //_______________________________________________________________________________________________
- {
- "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++14 -o \"${file_path}/${file_base_name}\"",
- "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
- "working_dir": "${file_path}",
- "selector": "source.c, source.c++",
- "variants":
- [
- {
- "name": "Run",
- "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++14 -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
- }
- ]
- }
- /__________________________________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement