1

mail@pastecode.io avatar
unknown
plain_text
a year ago
716 B
2
Indexable
Never
#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";
}