⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 videotype.h

📁 data+structures+using+c的源码
💻 H
字号:
#ifndef H_videoType
#define H_videoType
#include <iostream>
#include <string>

using namespace std;

class videoType
{
	friend ostream& operator<<(ostream&, const videoType&);
public:
    void setVideoInfo(string title, string star1, 
					  string star2, string producer, 
					  string director, string productionCo, 
					  int setInStock);
    int getNoOfCopiesInStock() const;
    void checkOut();
	void checkIn();
    void printTitle() const;
    void printInfo() const;
    bool checkTitle(string title);
    void updateInStock(int num);
    void setCopiesInStock(int num);
    string getTitle();
    videoType(string title = "" , string star1 = "", 
			  string star2 = "", string producer = "", 
			  string director = "", string productionCo = "", 
      		  int setInStock = 0);
    bool operator==(const videoType&) const;
    bool operator!=(const videoType&) const;
	bool operator<(const videoType&) const;
	bool operator<=(const videoType&) const;
	bool operator>(const videoType&) const;
	bool operator>=(const videoType&) const;

private:
    string videoTitle;	
    string movieStar1;	
    string movieStar2;	
    string movieProducer;  
    string movieDirector; 
    string movieProductionCo;  
    int copiesInStock; 
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -