Advertisement
CamolaZ

cliente implementação

May 11th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. #include "Cliente.h"
  2.  
  3.  
  4. Cliente::Cliente(ifstream & in){
  5.   // A IMPLEMENTAR
  6. }
  7.  
  8.  
  9. string Cliente::getNome() const{
  10.   return nome;
  11. }
  12. void Cliente::setId(string idRead) { // doconstrutor that gonna be alterning the values to rescrive on atribute of Object class
  13.     id = stoi(idRead);
  14. }
  15.  
  16. void Cliente::setNome(string nameRead)
  17. {
  18.     nome = nameRead;
  19. }
  20.  
  21. void Cliente::setVolCompras(string amountRead)
  22. {
  23.     volCompras = stof(amountRead);
  24. }
  25. unsigned int Cliente::getId() const{
  26.     return id;
  27. }
  28.  
  29. float Cliente::getVolCompras() const{
  30.   return volCompras;
  31. }
  32.  
  33. void Cliente::save(ofstream & out) const{
  34.  
  35.   // A IMPLEMENTAR
  36.  
  37. }
  38.  
  39. ostream& operator<<(ostream& out, const Cliente & cli){
  40.   // A IMPLEMENTAR
  41. }
  42.  
  43.  
  44. bool operator<(const Cliente &cli1, const Cliente &cli2){
  45.   // A IMPLEMENTAR
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement