[table of
contents] [previous section] [next
section]
4.How to
compile and execute a C++ program?
Following the above
mentioned steps, you have successfully created a c++ project. Now it’s time
Figure 7 add
files to project
![]()

Figure 8 Source code file
![]()

Figure 9 Header File
to compile and
execute your project. Here we still use the hw03.cpp example.
Open the workspace
for project. As shown in Figure 10, select build, click build project.exe,
![]()

Figure 10 Build the project
If there is no error
with the compiling , you can execute the
project. Select build, click execute project.exe as shown in Figure 1.11. After execution of the project, the result is
in Figure 12.
Executive the project

Figure 11

Figure12-1

Figure 12-2
[table of
contents] [previous section] [next
section]