Question: Transform the following code to using only iomanip ? if (conIO(os)) { if (bool(*this)) { os < < | ; os.width(SDDS_SHELF_ID_LEN); os < < left;

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;

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

if conIOos if boolthis os stdsetwSDDSSHELFIDLEN std... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!