-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer_readme.txt
77 lines (59 loc) · 2.84 KB
/
container_readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Prerequisite:
1) cmake
2) Visual Studio Community Edition C++
for me this is Visual Studio 15 2017 but you can use the latest version e.g. 2019
Unzip the container.zip archive file to your favorite directory
I'm used to work on a virtual disk drive o:
1) open a command windows console
2) go to your favorite directory, for me it shall be
cd C:\RTC_WORKSPACE\TEST_C++\
3) map your disk virtual drive to current directory
subst o: %CD%
4) goto your disk drive
o:
4) Unzip the CONTAINER.zip archive file to your current disk drive o:
5) goto your project directory
cd CONTAINER
6) Generate your solution
O:\> cmake -G "Visual Studio 15 2017"
-- Selecting Windows SDK version 10.0.16299.0 to target Windows 6.1.7601.
-- The C compiler identification is MSVC 19.13.26128.0
-- The CXX compiler identification is MSVC 19.13.26128.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written
o:>
7) open the created visual studio solution ProjectContainer.sln
8) Build the solution
- Select from Solution Explorer the dongle executable_matrix2D
- Right Click and then select build
9) open the main program
10) set a breakpoint at end bracket of main
11) Run in debug mode the ProjectContainer executable
- Select from Solution Explorer the dongle executable_container
- Right Click and then select from the menu scroll bar <Set as Startup Project>
- Right Click and then select debug
12) From the debugger console you must see the two vector contents
Container1 and Container2 that the sort is done successfully
(see the task 3: Coding 2 description)!
Container2 sorted with position
position= 2 Value=1
position= 0 Value=4
position= 1 Value=7
Container1 sorted according sorted position of Container2
position= 0 Value=c
position= 1 Value=a
position= 2 Value=b
13)Add a watch window and select myContainer1 and myContainer2
and you can see also from the vector contents that the sort is done successfully
for the two containers as expected (see the task 3: Coding 2 description)!