This commit is contained in:
2024-11-26 20:38:50 +01:00
parent 582bc26ad7
commit b1d4730e60
13 changed files with 1308 additions and 0 deletions

29
TP7/Entreprise.h Normal file
View File

@@ -0,0 +1,29 @@
#pragma once
#include <string>
#include <fstream>
#include <iostream>
#include "getio.h"
using namespace std;
class Entreprise {
string m_company; //(Nom de la Société) clé
string m_country; //(Nom du Pays)
float m_market_value; //(Valeur Marchande)
string m_sector; //(Secteur dActivité)
float m_turnover; //(Chiffre dAffaire)
float m_employees; //(Nombre dEmployés)
int m_rank_2015; //(Rang en 2015)
int m_rank_2014; //(Rang en 2014)
public:
void saisie(ifstream&);
void affichage();
int rank_progress() const;
float turnover_empl() const;
float getTurnover() const;
string key() { return m_company; }
};