Professional Documents
Culture Documents
1 Install Software Practice-C Programming
1 Install Software Practice-C Programming
Practice C_programming
Instruction to install
Visual Studio Code and MinGW software
1
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
Step 1: Install Visual Studio Code (For both Windows and IOS)
Visual Studio Code is a code editor redefined and optimized for building and debugging modern
https://code.visualstudio.com/
2
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
Step 1: Install Visual Studio Code (For both Windows and IOS)
Visual Studio Code is a code editor redefined and optimized for building and debugging modern
https://code.visualstudio.com/
Run as default by
Next->> Next ….
3
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
Step 2: Install MinGW (For Windows only)
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC
compiler
https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/
Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download
Remember
this path
4
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
2.1 Copy the Path of installed MinGW to the Environment variables of Windows
5
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Note: If cannot run the Installation of MinGW, please download a MinGW version in “https://winlibs.com/#download-
release” then extract the zip file, copy the extracted folder to C driver (ex. C:\mingw64), continue the next steps
2.1 Paste the Path of installed MinGW to the Environment variables of 3/Click to
Windows Advanced
2/ Click to
Advanced
System Setting
1/ Click to
Properties of 4/Environment
This compute 6
Variables
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
2.1 Paste the Path of installed MinGW to the Environment variables of Windows
7/Click to
New
6/ Click to Edit
8/ Paste the
9/OK to finish
copied “Path”
5/ Click to of MinGW64
“Path” line
7
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Practice C_programming
2.2 Test if the GCC is running 3/Type gcc --version
2/ Open cmd.exe
4/OK! Done! If it
appears this line
8
1/ Find cmd.exe
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Configuration Visual
Studio Code (VSC).
Let’s open Visual Studio Code
9
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
2/ Search and
Step 3: Visual Studio Code Extensions install:
C/C++
1/ click on the
extension
10
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
11
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
12
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
2/ Click
here on
Setting
1/ Click here
on the visual
studio code
13
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
1/ Click on
extensions
2/ Click on
Run code
configuration
14
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
15
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
16
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Configuration on Mac OS
17
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
18
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Configuration on Mac OS
19
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Configuration on Mac OS
1/
Search: C/C++
Open c_cpp_properties.json
21
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++98",
"intelliSenseMode": "macos-clang-x64"
}
],
"version": 4
} 22
UNIVERSITY OF SCIENCE AND TECHNOLOGY OF HANOI
Example:
https://www.programiz.com/c-programming/online-com
piler/
23