Advertisement
Dagdelo

loja.h

Mar 31st, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #ifndef LOJA_H
  2. #define LOJA_H
  3.  
  4. #include <iostream>
  5. #include <string>
  6.  
  7. using namespace std;
  8.  
  9. class loja {
  10.   private:
  11.     string nome;
  12.  
  13.   public:
  14.     loja(string n = "Sem Nome") : nome(n) { cout << "Construindo..." << endl; }
  15.     ~loja() { cout << "Destruindo..." << endl; };
  16.     void hello(std::string const &name);
  17.     friend ostream &operator<<(ostream &out, const loja &l);
  18.     friend istream &operator>>(istream &in, loja &l);
  19. };
  20. #endif // LOJA_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement