Files
CoursCPP/TP7/Entreprise.h
2024-11-26 20:38:50 +01:00

29 lines
629 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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; }
};