TP7: formattage
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user