Re: size()<CAPACITY


[ Follow Ups ] [ Post Followup ] [ CCNY CSc 212 Messages ] [ Help ]

Posted by chanthee on October 05, 2002 at 12:12:48:

In Reply to: Re: size()<CAPACITY posted by Juan Monzon on October 05, 2002 at 01:47:36:

I used assert (size() < CAPACITY); with the following member functions:
In the header file (.h file) I declared capacity as enum{CAPACITY = 30};
inside the Class sequence in public. I am using visual C++ 6.0.
Also could it be that typedef is causing the crash.

Thank you any help is appreciated.

void sequence::insert (const value_type& entry)
{ assert (size() < CAPACITY);


void sequence::attach(const value_type& entry)
{ assert (size() < CAPACITY);

void sequence::remove_current()
{assert (size() < CAPACITY);



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:


[ Follow Ups ] [ Post Followup ] [ CCNY CSc 212 Messages ] [ Help ]