末尾的 const 是什么意思????
class IntArray {
public:
// 相等与不相等操作 #2b
bool operator==( const IntArray& ) const;
bool operator!=( const IntArray& ) const;
// 赋值操作符 #2a
IntArray& operator=( const IntArray& );
int size() const; // #1
void sort(); // #4
int min() const; // #3a
int max() const; // #3b
// 如值在数组中找到
// 返回第一次出现的索引
// 否则返回-1
int find( int value ) const; // #3c
private:
// 私有实现代码
};
*****************************************************
其中这段代码
bool operator==( const IntArray& ) const;
bool operator!=( const IntArray& ) const;
中的 末尾的 const 是什么意思????
有什么作用??