任何人都可以帮我解决签名的未签名不匹配问题吗?这是关于如果 my_size
void set::add(SET_ITEM_TYPE newItem)
// post: If newItem is not in this set, newItem is added
// and the size of the set increased by +1.
{
if (positionOf(newItem) == -1 )
{
if(my_size >= my_item.capacity())
{
my_capacity = 2 * my_item.capacity();
my_item.resize( my_capacity );
}
my_item[my_size] = newItem;
my_size++;
}
}