Advertisement
Cre3d

Untitled

Apr 27th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1.     char author[100];
  2.                     cout << "Autor: ";
  3.                     cin.getline(author, 100);
  4.                    
  5.                     char title[300];
  6.                     cout << "Tytul: ";
  7.                     cin.getline(title, 300);
  8.                    
  9.                     unsigned int year;
  10.                     cout << "Rok: ";
  11.                     cin >> year;
  12.                    
  13.                     unsigned int edition;
  14.                     cout << "Numer wydania: ";
  15.                     cin >> edition;
  16.                    
  17.                     char publisher[100];
  18.                     cout << "Wydawca: ";
  19.                     cin.getline(publisher, 100);
  20.                    
  21.                     unsigned int pages;
  22.                     cout << "Liczba stron: ";
  23.                     cin >> pages;
  24.                    
  25.                     char genre[100];
  26.                     cout << "Gatunek: ";
  27.                     cin.getline(genre, 100);
  28.                    
  29.                     char description[2000];
  30.                     cout << "Opis ksiazki: ";
  31.                     cin.getline(description,2000);
  32.                    
  33.                    
  34.                     lib.AddBook(Book(author, title, year, edition, publisher, pages, genre, description));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement