ARBOOK2 - Books (Struct)
Build a struct that stores book information in a structure:
- title: string
- author: string
- subject: string
- book_id: integer
Allow the user to specify the number of books to save, enter information about the books, then display a list.
Input
ntitle1
author1
subject1
book_id1
title2
author2
subject2
.....
Output
title1 : author1 : subject1 : book_id1
title2 : author2 : subject2 : book_id2
.....
Example
Input: 2 thang quy nho nguyen nhat anh thanh xuan vuon truong 2 bo cau khong dua thu nguyen nhat anh thanh xuan vuon truong 1 Output: thang quy nho : nguyen nhat anh : thanh xuan vuon truong : 2 bo cau khong dua thu : nguyen nhat anh : thanh xuan vuon truong : 1
Added by: | khanhvh |
Date: | 2020-11-17 |
Time limit: | 1s-5s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |