What is the initialization of the Category 11 list?
This article mainly introduces "what is the initialization of the list of Category 11". In the daily operation, I believe many people have doubts about the initialization of the list of Category 11. The editor consulted all kinds of materials and sorted out a simple and useful method of operation. I hope it will be helpful for you to answer the question of "how the initialization of the list is"! Next, please follow the editor to study!
What was it like before?
C or C++ can initialize the array with the following curly braces plus the initial value:
Int int_array [] = {1,2,3,4,5}
In C++, if you have a class like this:
Class Tester
{
Public:
Tester (int value)
: m_value (value * 2)
{}
Void print () {
Cout