Transform the following code to using only iomanip ? if (conIO(os)) { if (bool(*this)) { os <
Fantastic news! We've Found the answer you've been seeking!
Question:
Transform the following code to using only iomanip ?
if (conIO(os))
{
if (bool(*this))
{
os << "| ";
os.width(SDDS_SHELF_ID_LEN);
os << left;
os.fill(' ');
os << m_shelfId << " | ";
os.width(SDDS_TITLE_WIDTH);
os << left;
os.fill('.');
os << m_title;
os << " | ";
if (m_membership == 0)
{
os << " N/A ";
}
else
{
os << m_membership;
}
os << " | " << m_date << " |";
}
else
{
if (bool(*this))
{
os << type() << "t" << m_libRef << "t" << m_title << "t " << m_membership << "t" << m_date;
}
}
}
return os;
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: