The append and print functions
void Line::append(string s)
{
if (!w.empty())
w += `` '';
w += s;
}
void Line::print(FILE* f)
{
if (!w.empty())
fprintf(f, ``%s\n'', w.c_str());
}
Previous slide
Next slide
Back to first slide
View graphic version