The canfit function
bool Line::canfit(string s)
{
if (w.empty())
return s.length() <= max;
return (
w.length() + s.length() + 1
) <= max;
}
Previous slide
Next slide
Back to first slide
View graphic version