Created
April 19, 2018 01:25
-
-
Save jessiewestlake/cf4e376aee6ac937170a239d8eb9f78e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <string> | |
#include <vector> | |
using namespace std; | |
class bookType | |
{ | |
private: | |
string title; | |
vector<string> authors; | |
string publisher; | |
string ISBN; | |
double price; | |
int year; | |
int stockCount; | |
public: | |
bookType(); | |
bookType(string, string, string, int, double, int); | |
void setTitle(string); | |
void addAuthor(string); | |
void addAuthor(string, string); | |
void addAuthor(string, string, string); | |
void addAuthor(string, string, string, string); | |
void setPublisher(string); | |
void setISBN(string); | |
void setPrice(double); | |
void setYear(int); | |
void setStockCount(int); | |
string getTitle(); | |
string getAuthors(); | |
string getPublisher(); | |
string getISBN(); | |
double getPrice(); | |
int getYear(); | |
int getStockCount(); | |
void print(); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment