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

📄 book.h

📁 VC6.0小型图书馆管理程序。建议具有书籍存储与信息检索、借阅者信息存储与检索、借还书操作及相关信息修改功能。
💻 H
字号:
#ifndef flag
#define flag

#include<iostream>
#include<string>
#include <conio.h>

using namespace std;


class book
{
   public:
	     book(int b1,string b2,string b4,int b3,int b5,int b6,int b7)
		 {
              bnum=b1;
              bname=b2;
              author=b4;
              price=b3;
			  year=b6;
			  month=b7;
			  score=0;
		 }
		 
		 book(){}
         
		 void SetBname(string n);
		 void SetAuthor(string a);
		 void SetPrice(int p);
		 void SetYear(int y);
		 void SetMonth(int m);
         int GetBnum();
		 string GetBname();    
         string GetAuthor();    
         int GetPrice();
		 void print();
	     void maxhigh();
                         
   private:
	     int bnum;
	     string bname;          
         string author; 
		 int price; 
		 int year;
		 int month;
		 int score;
};
  
void book::SetBname(string n)
{
     bname=n;
}

void book::SetAuthor(string a)
{
     author=a;
}

void book::SetPrice(int p)
{
     price=p;
}

void book::SetYear(int y)
{
     year=y;
}
void book::SetMonth(int m)
{
     month=m;
}
 
int book::GetBnum()
{
    return(bnum);
}
  
string book::GetBname()
{
    return(bname);
}
  
string book::GetAuthor()
{
    return(author);
}  

int book::GetPrice()
{
    return(price);
}

void book::print()
{
	cout<<"书号:"<<bnum<<endl;
	cout<<"书名:"<<bname<<endl;
	cout<<"作者:"<<author<<endl;
	cout<<"单价:"<<price<<endl;
	cout<<"出版年份:"<<year<<"年"<<endl;
}


#endif

⌨️ 快捷键说明

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