1,第75页写道:int*pa=find(ia,ia+asize,1024);
if(pia!=ia+asize)
//找到了
请问,这里突然冒出来得pia是什么意思?
2,vector的赋予初值的方法共有几种,分别是什么?
3,triangular tri(4,8)应该怎么解释?我怎么搞不明白,我觉得括号中的第二个数字应该要比第一个数字小!
4,bool operator==(const triangular_iterator&)const
  怎么解释?operator是什么意思?

解决方案 »

  1.   

    1.勘误,应为:if(it != ivec.end())2.vector的constructor:
    explicit vector(const A& al = A());
    explicit vector(size_type n, const T& v = T(), const A& al = A());
    vector(const vector& x);
    vector(const_iterator first, const_iterator last,
        const A& al = A());
    All constructors store the allocator object al (or, for the copy constructor, x.get_allocator()) in allocator and initialize the controlled sequence. The first constructor specifies an empty initial controlled sequence. The second constructor specifies a repetition of n elements of value x. The third constructor specifies a copy of the sequence controlled by x. The last constructor specifies the sequence [first, last).3.这个问题在书的什么地方?tri因该是候捷自己写的一个函数。4.这是操作符的重载,operator是关键字。“操作符”的意思。