Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <cstring>
- using namespace std;
- struct Book
- {
- char title[30],author[30];
- float price;
- int year_of_publication;
- };
- struct Author
- {
- char name[30],subname[30];
- int birth_date;
- struct Book x[15];
- };
- struct Library
- {
- struct Author y[15];
- };
- void readBooks(struct Library tab[], int n)
- {
- int i,j;
- for(i=0;i<n;i++)
- {cout<<"Input "<<i+1<<". authors name"<<endl;
- gets(tab[i].Author[y].name);
- gets(tab[i].Author[y].subname);
- }
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement