TP7 : Mise à jour avec les fichiers moodle
This commit is contained in:
@@ -10,14 +10,7 @@ void Pays::saisie(ifstream &in) {
|
||||
getline(in, Nom, ';');
|
||||
|
||||
getfloat(in, Population, ';');
|
||||
// Pas dans le fichier :(
|
||||
// getfloat(in, Area, ';');
|
||||
|
||||
// "trim" en c++
|
||||
auto end = Nom.end();
|
||||
while (*(end-1) == ' ')
|
||||
end--;
|
||||
Nom.erase(end, Nom.end());
|
||||
getfloat(in, Area, ';');
|
||||
}
|
||||
|
||||
void Pays::affichage() {
|
||||
|
||||
Reference in New Issue
Block a user