• 2022-07-28
    下面哪条语句创建了一个存有10个整数的vector对象?
    A: std::vector v(10);
    B: std::vector v;
    C: std::vector v[10];
    D: std::vector v[10];
    E: std::vector(int) v;
  • A

    内容

    • 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 &lt;int&gt; 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.