https://amzn.to/2ytBG55
--The vector implementation does not require, but do not prohibit, range checking in []. --As a general rule, when allocating a resource, it must be returned directly or indirectly to the part of the system that manages the resource. --As an example of resources, there is a memory lock file handle thread handle socket window. --Freestore memory allocated using the new operator and returned to the freestore using the delete operator --An object that is responsible for releasing a resource, such as a vector, is called the owner or handle of that resource. --Use vector instead of explicitly using the new or delete operators when the required storage interests in scope vary.
―― 1 define template
--For each exercise, create two objects of the defined class and test them (using the output) to verify that the design and implementation actually work as expected. Where exceptions are involved, you need to think twice about where the error occurs.
--1 Write the template function f (). This function adds an element of type vector
--2 Write a template function that receives vector
--3 Describe the template class Pair. This class can store value pairs of any type. Use this class to implement a simple symbol table as used in the calculator program (7.8).
--4 Rewrite the Link class (17.9.3) and change it to a template that uses the value type as the template argument. Then use Link
―― 5 Define an Int class. This class contains only one class member of type int. Define constructors, assignments, operators +,-, *, /. Test this class and improve the design as needed, such as defining << and >> operators to make it easier to perform I / O.
--By using a template, you can define a container such as vecotor separately from the element type definition. --By using an exception, the code that detects and notifies the error can be written separately from the code that handles the error. --You can use push_back () resize () reserve () to separate the definition of a vector from using that size.
https://amzn.to/3fvlfpr
--The loss function is a function that returns how much the prediction output by the multi-layer perceptron is off.
https://amzn.to/2A4nVdf ** Thinking about humans when studying artificial intelligence **
--People who are trapped in the pleasures of survival based on their desires are hard to liberate. Because it does n’t mean that others will let you go. -Do not consider yourself inferior or superior to others without showing yourself equal to others. --Do not rely on scholarship ――I have no wishes for this world or the afterlife
Recommended Posts