W4-Presentation-Setting Up My Environment
W4-Presentation-Setting Up My Environment
Setting up My Environment
Week 004: Setting up My Environment
Step 1:
To create your own
Github account you must
visit the GitHub, Inc.
website through the link
https://github.com/.
MicroEJ. (2015). MicroEJ and Github [Online Blog].
Retrieved from http://www.microej.com/microej-and-
github/
Week 004: Setting up My Environment
Step 2:
Click the “Sign up” link on
the upper right corner of
the page.
Week 004: Setting up My Environment
Step 3:
a. Enter your preferred
username, valid and
active email address,
and password.
b. Click “Create an
account” button.
Week 004: Setting up My Environment
Step 4:
a. Select “Unlimited
public repositories for
free”.
Leave the “Help me set
up an organization next”
checkbox unticked.
b. Click “Continue”
button.
Week 004: Setting up My Environment
Step 5:
a. Select the most
appropriate options
you desire. This
course will not limit
you on how you will
use your Github
account in the future.
Step 6:
You are now ready to
create your first Github
project.
Week 004: Setting up My Environment
Step 1:
To create an initial repository:
a. If you do not have yet
any repository,
Click “Start a project”
button.
Step 2:
Enter “AMAOEd-
CompProg1-Week004”
(without spaces) in the
“Repository name” textbox.
Week 004: Setting up My Environment
Step 3:
Enter “My very first C++
application.” in the
“Description (optional)”
textbox.
Week 004: Setting up My Environment
Step 4:
Make sure the “Public”
checkbox is ticked.
Week 004: Setting up My Environment
Step 5:
Tick the “Initialize this
repository with a README”
checkbox.
Week 004: Setting up My Environment
Step 6:
Set the GitIgnore template:
a. Click the “Add .gitignore:
None” button.
Step 8:
Verify that the fields are
correct and accurate.
Week 004: Setting up My Environment
Step 9:
Click “Create repository”
button.
Week 004 Setting up My Environment
Step 10:
You now have created your
Github repository for this
week’s activity.
Week 004: Setting up My Environment
Step 1:
Visit the Visual Studio
Code official website at
https://code.visualstudio.co
m.
Step 2:
Click the “Download”
button.
Step 3:
Click the “[Download Icon]
Windows” button.
Week 004: Setting up My Environment
Step 4:
Verify that the Download
page is displayed. Wait
until the download is
completed.
Week 004: Setting up My Environment
Step 1:
Run the downloaded Visual
Studio Code installer (i.e.
VSCodeSetup-xxxx-x.x.x.exe).
Step 2:
Click “Next” button.
Week 004: Setting up My Environment
Step 3:
Read and accept the License
Agreement:
a. Tick the “I accept the
agreement” checkbox.
Click “Next” button.
Week 004: Setting up My Environment
Step 4:
Use the default installation
directory:
a. For 32-bit Windows, the
directory should be
“C:\Program Files\Microsoft
VS Code”.
Step 5:
Select the start menu folder,
a. Keep the value as is
“Visual Studio Code”.
Step 6:
Select additional tasks,
a. Leave the default
settings as is.
Step 7:
Verify installation tasks then
click “Install” button.
Week 004: Setting up My Environment
Step 8:
Wait for the installation process
to complete.
Week 004: Setting up My Environment
Step 9:
After the installation process
finishes, untick the “Launch
Visual Studio Code” checkbox.
Week 004: Setting up My Environment
Step 10:
Click “Finish” button.
Step 1:
Visit the official website of
MinGW at
http://www.mingw.org/.
Week 004: Setting up My Environment
Step 2:
Under Navigation pane (left
corner), click the “Downloads”
link.
Week 04: Setting up My Environment
Step 3:
Click the link beside the text
“Looking for the latest version?”
(i.e. Download mingw-get-
setup.exe).
Week 004: Setting up My Environment
Step 1:
Run the downloaded “mingw-
get-setup.exe” file.
a. Approve the necessary
security checkpoint if
necessary (for Admin rights
confirmation boxes).
Week 004: Setting up My Environment
Step 2:
Click the “Install” button.
Week 004: Setting up My Environment
Step 3:
Change the settings as
indicated:
a. Keep the “Installation
Directory” to
“C:\MinGW”.
Step 4:
The download process of its
components will proceed. Wait
until it finishes (i.e. 100%
progress).
a. After, click the “Continue”
button.
Week 004: Setting up My Environment
Step 5:
The “MinGW Installation
Manager” will appear.
Week 004: Setting up My Environment
Step 1:
Open the “MinGW Installation
Manager” at
“C:\MinGW\bin\mingw-get.exe”.
Week 004: Setting up My Environment
Step 3:
Set MinGW Base to install:
a. Click the checkbox
beside “mingw32-base”.
Step 4:
Set C++ compiler to install:
a. Click the checkbox
beside “mingw32-gcc-
g++”.
Step 5:
Set Objective-C compiler to
install:
a. Click the checkbox
beside “mingw32-gcc-objc”.
Step 6:
Set Objective-C compiler to
install:
a. Click the checkbox beside
“mingw32-gcc-objc”.
Step 7:
Verify that the following have
a green checkbox:
a. mingw32-base
b. mingw32-gcc-g++
c. mingw32-gcc-objc
Week 004: Setting up My Environment
Step 8:
Manually close the “MinGW
Installation Manager”.
Week 004: Setting up My Environment
Step 1:
Press the “[Windows Logo]
Windows” and the “Pause”
keys at the same time. This
will open the Windows
System window.
Week 004: Setting up My Environment
Step 2:
Click the “Advanced System
Settings” link on the left pane
of the window to open the
System Properties dialog.
Week 004: Setting up My Environment
Step 3:
Click the “Environment
Variables…” button.
Week 004: Setting up My Environment
Step 4:
Under system variables,
locate and select the “Path”
variable.
Week 004: Setting up My Environment
Step 5:
Click the “Edit” button.
Week 004: Setting up My Environment
Step 1:
Open Visual Studio Code.
Week 004: Setting up My Environment
Hello World
Step 1:
Open Visual Studio Code.
Week 004: Setting up My Environment
Hello World
Open our project folder
“AMAOEd-CompProg1-
Week004”.
Step 2:
Under File menu, click “Open
Folder… [CTRL + K CTRL+O]”
option.
Week 004: Setting up My Environment
Hello World
Step 3:
Locate and select our
“AMAOEd-CompProg1-
Week004” folder.
Week 004: Setting up My Environment
Hello World
Step 4:
Click the “Select Folder” button.
Week 004: Setting up My Environment
Hello World
Step 5:
Verify that under the Explorer
pane (left side), there are two
folders available (i.e. “.vscode”
and “src” folders).
Week 004: Setting up My Environment
Hello World
Step 6:
There are times that Visual
Studio Code will download
several updates and packages
for our project. Let the
download complete first before
proceeding.
Week 004: Setting up My Environment
Hello World
Open our project folder
“AMAOEd-CompProg1-
Week004”.
Step 7:
In the code, under the TO DO
comments, add the line: cout
<< “Hello World”;
Week 004: Setting up My Environment
Hello World
Step 8:
This is case-sensitive. Do not
capitalize any part of the line
outside of the quotation marks.
The line ends with a semi-colon
(;).
Week 004: Setting up My Environment
Hello World
Build and run our application.
Step 9:
Click the “Debug
(CTRL+SHIFT+D)” icon.
Week 004: Setting up My Environment
Hello World
Step 10:
Click the “Start Debugging“
button with a green play icon.