Code:
#include <iostream>
using namespace std;
int main()
{
char book[20][50],choice;
int index;
cout<< "ADDING BOOK - MMSU LIBRARY";
for ( int i = 0; i < 20; i++ )
{
cout << "\n\nTitle: :";
cin.getline(book[i], 50);
}
system("cls");
cout << "DISPLAY BOOK - MMSU Library System";
cout << "\n\nBook Index" " \tTitle";
for ( int i = 0; i < 20 ; i++ )
{
index=i+1;
cout<<endl<<" "<<index<<"\t\t"<<book[i]<<endl;
}
system("pause");
return 0;
}






