#include<iostream>
#include <string>

using namespace std;

class Book
{
private:
    int year;
    string author;
    string bookName;

public:

    Book(int year, const char* author, const char* bookName)
        :year(year),author(author),bookName(bookName){}

    string getStr()
    {
        return std::to_string(year)+" | "+author+" | "+bookName;
    }

    int getYear(){return year;}
};


int main()
{
    Book b[] = {
        Book(2016,"Me","Options..."),
        Book(2018,"Me","Options VAK...")
    };

    for(int i(0);i<2;i++)
        std::cout<<b[i].getStr()<<"\n";

    return 0;
}
