Example #1
0
		void DisplayInfo()
		{
			cout<<"借阅信息------------------------------"<<endl;
			cout<<"图书信息----------------"<<endl;
			cout<<"书名:\t\t"<<inBook.GetName()<<endl;
			cout<<"作者:\t\t"<<inBook.GetAuthor()<<endl;
			cout<<"ISBN号:\t"<<inBook.GetISBNNum()<<endl;
			cout<<"出版日期:\t"<<inBook.GetDat()<<endl;

			cout<<"读者信息-----------------"<<endl;
			cout<<"姓名:\t\t"<<inPatron.GetName()<<endl;
			cout<<"图书卡号:\t"<<inPatron.GetCardNum()<<endl;
			cout<<"借书日期:\t"<<inDate.GetYear()<<"-"<<inDate.GetMonth()<<"-"<<inDate.GetDay()<<endl;
			if(inPatron.IsOwed())
				cout<<"欠费信息:\t欠费"<<inPatron.GetOweCount()<<"元"<<endl;
			else
				cout<<"欠费信息:\t无欠费记录"<<endl;

			cout<<endl;
		}