Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. void Input(const struct BOOK* book)
  2. {
  3.     printf("Input category: science(0), cookbook(1), classic(2)");
  4.     scanf("%u", &book.category);
  5.  
  6.     printf("Input author:");
  7.     scanf("%29s", book.author);
  8.     fflush(stdin);
  9.  
  10.     printf("Input author:");
  11.     scanf("%29s", book.author);
  12.     fflush(stdin);
  13.  
  14.     printf("Input the year of publishing");
  15.     scanf("%u", &book.published);
  16.  
  17.     printf("Input the book price ");
  18.     scanf("%u", &book.cost);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement