Initializing vector elements to a particular value

There are 8 constructors for std::vector class, out of which there is this constructor that takes two parameters… [sourcecode language=”cpp”]vector( size_type _Count,  const Type& _Val );[/sourcecode] First parameter is size of the vector, second is default value for all elements in the vector. Let’s suppose you have 1000 Employees in your organization each of them has an initial […]
Continue reading…