Skip to content

Instantly share code, notes, and snippets.

@jessiewestlake
Created April 19, 2018 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessiewestlake/cf4e376aee6ac937170a239d8eb9f78e to your computer and use it in GitHub Desktop.
Save jessiewestlake/cf4e376aee6ac937170a239d8eb9f78e to your computer and use it in GitHub Desktop.
#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