Screenshot of the workspace folder
MinGW. Download from here
g++ (sudo apt install g++
)
g++ (g++
)
- Download MinGW.zip from the above link and extract it to your local disk C:
Note: Set C:\MinGW\bin as path under environment variables.
-
Copy .vscode from this repo and paste it inside the folder where your C/C++ codes are present. Open this folder as workspace in vscode.
-
Open any C/C++ file, hit
ctrl+shift+b
and select Create Files. This should create 2 files(Input.txt and Output.txt) in the root of the workspace folder. Note that this is a one time step. -
In the Input.txt file, provide your inputs.
-
To build and run, use the keyboard shortcut command
ctrl+shift+b
and select C++ builder.
The output of the code corresponding to the inputs are saved in the Output.txt.
-
After installing g++, copy .vscode from this repo and paste it inside the folder where your C/C++ codes are present. Open this folder as workspace in vscode.
-
Open any C/C++ file, hit
ctrl+shift+b
and select Create Files. This should create 2 files(Input.txt and Output.txt) in the root of the workspace folder. Note that this is a one time step. -
In the Input.txt file, provide your inputs.
-
To build and run, use the keyboard shortcut command
ctrl+shift+b
and select C++ builder.
The output of the code corresponding to the inputs are saved in the Output.txt.
-
To install g++, install Xcode first. Xcode menu > Preferences > Downloads > choose "Command line tools" > Click "Install" button. Alternatively, run
g++
on terminal and follow instructions. -
Edit c_cpp_properties.json file (under .vscode) and correct your OSX version (if necessary) under
"macFrameworkPath": [ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks" ],
-
Copy .vscode from this repo and paste it inside the folder where your C/C++ codes are present. Open this folder as workspace in vscode.
-
Open any C/C++ file, hit
ctrl+shift+b
and select Create Files. This should create 2 files(Input.txt and Output.txt) in the root of the workspace folder. Note that this is a one time step. -
In the Input.txt file, provide your inputs.
-
To build and run, use the keyboard shortcut command
shift+command+b
and select C++ builder.
The output of the code corresponding to the inputs are saved in the Output.txt.
Reviews are appriciated and can be submitted here.