// Demonstrating the simplest STL vector constructors. #include #include #include int main() { cout << "Demonstrating simplest vector constructors" << endl; vector vector1, vector2(3, 'x'); assert(vector1.size() == 0); assert(vector2.size() == 3); assert(vector2[0] == 'x' && vector2[1] == 'x' && vector2[2] == 'x'); assert(vector2 == vector(3, 'x') && vector2 != vector(4, 'x')); }