Simple class example of c++ for beginners

This class maintain a library card catalog entry.Have the class store a book's title,author,and the number of copies available. #include<iostream> using namespace std; class card { private: char booksTitle[50],author[50]; int av_copies; public: set_a() { cout<<"Enter the Books Title:" << endl; cin>> booksTitle; cout<<"Author:" << endl; cin>> author; cout<<"Available copies:" << endl; cin>> av_copies; } show() ...