-
Notifications
You must be signed in to change notification settings - Fork 0
/
Member.h
39 lines (33 loc) · 899 Bytes
/
Member.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include "Book.h"
class Member {
private:
int m_id;
std::string m_name;
std::string m_address;
std::string m_city;
std::string m_state;
int m_zipcode;
std::vector<Book> m_books;
public:
Member();
Member(int);
~Member();
// Set functions
void setID(int id) { m_id = id; }
void setName(std::string name) { m_name = name; }
void setAddress(std::string address) { m_address = address; }
void setCity(std::string city) { m_city = city; }
void setState(std::string state) { m_state = state; }
void setZipcode(int zipcode) { m_zipcode = zipcode; }
// Get functions
int getID() { return m_id; }
std::string getName() { return m_name; }
std::string getAddress() { return m_address; }
std::string getCity() { return m_city; }
std::string getState() { return m_state; }
int getZipcode() { return m_zipcode; }
};