A: std::vector
B: std::vector v;
C: std::vector v[10];
D: std::vector
E: std::vector(int) v;
举一反三
- 下列创建vector容器对象的方法中,错误的是( ) A: vector v(10); B: vector v(10, 1); C: vector v{10, 1}; D: vector v = (10, 1);
- 定义STL容器类vector的对象v如下,则下列操作有误的是()。vector<;int>; v(10); A: v.push_front(1) B: v[2] = 2 C: v.back() = 10 D: cout <;<; v.size()
- 中国大学MOOC: 定义vector容器v1: vector <int> v1(10);的意义是( )。
- Any subset of a vector space V which contains the zero vector is a subspace of V.
- 中国大学MOOC: 下面哪条语句创建了一个存有10个整数的vector对象?
内容
- 0
下列哪个定义迭代器it的方法是正确的 A: vector <int>:: iterator it; B: iterator it; C: vector:: iterator it; D: vector <int> v1; v1:: iterator it;
- 1
If Vis a subspace of[img=22x19]1803b6a69db62a6.png[/img], then the coordinate vector of any vector in V relative to a basis also in[img=22x19]1803b6a69db62a6.png[/img].
- 2
定义vector容器v1: vector <int> v1(10);的意义是( )。? 创建v1在下标是10的位置插入元素0|创建v1存放十进制整数|创建v1有一个元素10|创建v1有10个元素
- 3
In the vector field, the vector line is such a curve where ( ) A: The tangent direction at each point on it is orthogonal to the direction of the vector field at that point. B: The tangent direction at each point on it is parallel to the direction of the vector field at that point. C: The value of each point on it is equal to the value of the vector field at that point. D: The vector line is the geometric curve of the vector field function.
- 4
If F is a vector field, then divF is a vector field.