Advertisement
CamolaZ

header

May 11th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4. #include <fstream>
  5. #include <string>
  6.  
  7. #include "Data.h"
  8.  
  9. using namespace std;
  10.  
  11.  
  12. class Cliente {
  13.  private:
  14.   unsigned int id;
  15.   string nome;
  16.   Data cartaoCliente;
  17.   float volCompras;
  18.  
  19.  public:
  20.      //Cliente();
  21.   Cliente(ifstream & in);
  22.   string getNome() const;
  23.   unsigned int getId() const;
  24.   void setId(string idRead);
  25.   void setNome(string nameRead);
  26.   void setVolCompras(string amountRead);
  27.   float getVolCompras() const;
  28.   void save(ofstream & out) const;
  29.   friend ostream& operator<<(ostream& out, const Cliente & cli);  // mostra informacao do cliente no ecra
  30.   friend bool operator<(const Cliente &cli1, const Cliente &cli2); // compara 2 clientes (1 cleinte e menor que outro se o seu nome for "alfabeticamente" inferior)
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement