1

 avatar
unknown
plain_text
2 years ago
716 B
4
Indexable
#include <iostream>
#include <string>
#include <vector>
#include <ctime>

enum class BookTyp
{
    art,
    tecnical
};
class Book
{
public:
    Book(const std::string& _autor, const std::string& _NameBook, BookTyp _booktyp):
        autor(_autor),
        NameBook(_NameBook),
        booktyp(_booktyp) {}
    
    BookTyp GetBookType()const {
        return booktyp;
    }
    private:
        const std::string autor;
        const std::string NameBook;
        const BookTyp booktyp ;
};
class LibraryB {
public:

    ~LibraryB () {
        for (int i = 0; i < size(lib); ++i) {
            delete lib[i];
        }
    }


int main()
{
    std::cout << "Hello World!\n";
}