We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de3a142 commit 52a49cbCopy full SHA for 52a49cb
1 file changed
cpp08/ex01/src/main.cpp
@@ -31,7 +31,6 @@ main ()
31
}
32
33
{
34
-
35
print (SUB_TITTLE GREEN
36
"Exception when try to fill out of bounds - populate()\n" RESET);
37
Span sp = Span (5);
@@ -45,6 +44,14 @@ main ()
45
44
print (e.what ());
46
47
+ {
48
+ print (SUB_TITTLE GREEN "populate() with a valid range\n" RESET);
49
+ Span sp = Span (10);
50
+ std::vector<int> v (10, -42);
51
+
52
+ sp.populate (v.begin (), v.end ());
53
+ sp.operator<< (std::cout);
54
+ }
55
56
print (SUB_TITTLE GREEN "Exception when try to calculate shortestSpan() "
57
"with less than 2 numbers\n" RESET);
0 commit comments