Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. //Customer Header File
  2. //More Windows-only programs. Again, needs modification to build on other OSes.
  3.  
  4. #include <string>
  5.  
  6. #include "address.h"
  7. #include "contact.h"
  8.  
  9. #pragma once // again, I don't know...
  10.  
  11. class Customer {
  12.      
  13.       private:
  14.       int custnum;        // This seems similar, only introducing one new concept.
  15.       string name;        // In a way, I pretty badly need something like this.
  16.      
  17.  
  18.       public:
  19.       Customer();
  20.       Customer(int custnum, string name);
  21.      
  22.       //Accessors
  23.       int getcustnum() { return custnum; }
  24.       string getname() { return name; }
  25.  
  26.       //Mutators
  27.       void setcustnum() { custnum = newcustnum; }
  28.       void setname() { name = newname; }
  29.  
  30.       //Others
  31.       void store(int custnum, string name);
  32.       void print(void);
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement