TP7: formattage

This commit is contained in:
2024-11-28 13:48:19 +01:00
parent 456150e6b1
commit 0a54ea3aca
3 changed files with 28 additions and 2 deletions

View File

@@ -16,7 +16,14 @@ void Entreprise::saisie(ifstream& s) {
}
void Entreprise::affichage() {
cout << m_company << " " << m_country << " " << m_market_value << " " << m_sector << " " << m_turnover << " " << m_employees << " " << m_rank_2015 << " " << m_rank_2014;
format(m_company, 20);
format(m_country, 15);
format(m_market_value, 10);
format(m_sector, 10);
format(m_turnover, 10);
format(m_employees, 6);
format(m_rank_2015, 3);
format(m_rank_2014, 3);
}
int Entreprise::rank_progress() const {