Structure in C++

struct Books{

char title[50];
char author[50];
char subject[100];
int book_id;

}book;

Structure as Function arguments

 

Pointers to structures:

struct Books *struct_pointer;

struct_pointer=&Book1;

To access the members of the structure  I have to use -> operator as follows

struct_pointer->title;

With typedef:

There are some arrors in teh code  I will fix thsi later..