|home |print view |recent changes |changed December 6, 2018 | |You are 126.96.36.199 <- set your identity!
How do you create an instance of the default-constructible type Block on the heap?
How do you delete the instance created on the heap?
What problem arises if you have loops in your object structure and how do you solve this?
How can you access to a shared pointer from within the
dynArray class template features a range-constructor. This constructor is a function template itself and there is no direct mapping from the iterator type to the container's element type. Therefore, you need to write a deduction guide in order to omit the class template arguments when constructing a
dynArray from a range. Add that deduction guide.
Note: Eclipse CDT/Cevelop does not recognize deduction guides syntactially yet. Therefore, you will need to ingore the syntax error in the editor marked with a questionmark in the orange box. Rely on the compiler regarding error messages in this case.
Solve the exercise from the OO module in C++ using (smart) pointers to build the graph of objects.
std::shared_ptrto this class. input.txt:
DB1 OO DB2 DB1 Math OO AD1 OO CPI OO Math Thesis DB2 SE2 UI2 SE1 AD1 CPI DB1 SE2 DB1 SE1 UI1 UI1 AD1 UI2 UI1
1: Math OO 2: DB1 AD1 CPI 3: DB2 SE1 UI1 4: SE2 UI2 5: Thesis
auto start=std::chrono::system_clock::now(); // do your stuff std::chrono::duration<double> delta=std::chrono::system_clock::now()-start; out << delta.count() << "s time\n";
|home |print view |recent changes |changed December 6, 2018 |
|You are 188.8.131.52
<- set your identity!