#include <iostream>
#include <iomanip>
#include <vector>
#include <string>

// Define a struct to hold book information
struct Book {
    std::string title;
    std::string author;
    std::string isbn;
};

// Function to print the books in a tabular format
void printBooks(const std::vector<Book>& books) {
    // Print the header
    std::cout << std::left << std::setw(30) << "Title"
              << std::setw(30) << "Author"
              << std::setw(20) << "ISBN" << std::endl;
    std::cout << std::string(80, '-') << std::endl;

    // Print each book's details
    for (const auto& book : books) {
        std::cout << std::left << std::setw(30) << book.title
                  << std::setw(30) << book.author
                  << std::setw(20) << book.isbn << std::endl;
    }
}

int main() {
    // Create a vector of books
    std::vector<Book> books = {
        {"The Great Gatsby", "F. Scott Fitzgerald", "9780743273565"},
        {"1984", "George Orwell", "9780451524935"},
        {"To Kill a Mockingbird", "Harper Lee", "9780060935467"}
    };

    // Print the books
    printBooks(books);

    return 0;
}