Добавил:
bagiwow
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Программирование / си++ / 2Semestr / Lab_8 / Prog2 / Class
.h#ifndef CLASS
#define CLASS
#include <iostream>
#include <deque>
#include <fstream>
#include <string>
//-----------------------------------------------------------------------
using namespace std;
//-----------------------------------------------------------------------
class BIBL
{
string autor;
string name;
float price;
public:
BIBL ();
BIBL (string,string,float);
BIBL (const BIBL&);
void Input();
void Show();
friend istream& operator>>(istream&,BIBL&);
friend ostream& operator<<(ostream&,BIBL&);
BIBL& operator = (const BIBL&);
};
//-----------------------------------------------------------------------
typedef deque<BIBL> db;
typedef deque<BIBL>::iterator iter;
string Rus(string);
void Print1(string,db);
void Print2(string,db);
void AddOfFile(ifstream&,db&);
void Delete(db& ,iter,int);
void Change(db&,iter,int,db&);
//-----------------------------------------------------------------------
#endif