We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa2d27 commit bb9d461Copy full SHA for bb9d461
lab6/lab6_1.cpp
@@ -17,6 +17,7 @@ int main()
17
testMap01();
18
testMap02();
19
testMap03();
20
+ testMap04();
21
22
testVector01();
23
testVector02();
lab6/lab6_1.hpp
@@ -9,6 +9,7 @@ void testList07();
9
void testMap01();
10
void testMap02();
11
void testMap03();
12
+void testMap04();
13
14
void testVector01();
15
void testVector02();
lab6/map.cpp
@@ -32,6 +32,15 @@ void testMap02()
32
}
33
34
void testMap03()
35
+{
36
+ std::map<std::string, int> mp;
37
+ mp["One"] = 1;
38
+ mp["Two"] = 2;
39
+
40
+ std::cout << "Four is" << mp["Four"] << std::endl;
41
+}
42
43
+void testMap04()
44
{
45
std::map<std::string, int> mp =
46
0 commit comments