//To compile: g++ [source_code.cpp] -o [exec_file] // replace [soure_code.cpp] with the filename, // replace [exec_file] with the executable file name // i.e., g++ c++_basics.cpp -o run //Note: if the output redirect is not given, i.e., the "-o [exec_file]" part is missing // then the default executable name is a.out //To run the program, simply run the executable: ./[exec_file] // i.e., ./a.out (if your executable file is a.out) #ifndef STRUCTS_H #define STRUCTS_H #include //input/output stream library #include using namespace std; //definition of Book struct struct Book { int pages; string title; int num_authors; string *authors; }; /**function name: function desc. param. pre post: **/ void authors_init(string *a, int size_au); void book_init_one_book(Book* book_arr, int idx); void book_init (Book* book_arr, int size) ; void print_book (Book &b); void delete_books(Book* &arr, int size); #endif