Guest User

rowery

a guest
Dec 7th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void wyswietl_dane();
  6.  
  7. struct rower
  8. {
  9.     char typ[20];
  10.     char marka[20];
  11.     char model[20];
  12.     unsigned int rozmiar;
  13. }; rower rowery[5];
  14.  
  15. int main()
  16. {
  17.     for(int i=0;i<=5;i++){
  18.     cout<<endl;
  19.     cout<<" Podaj typ: ";
  20.     cin>>rowery[i].typ;
  21.     cout<<endl;
  22.     cout<<" Podaj marke: ";
  23.     cin>>rowery[i].marka;
  24.     cout<<endl;
  25.     cout<<" Podaj model: ";
  26.     cin>>rowery[i].model;
  27.     cout<<endl;
  28.     cout<<" Podaj rozmiar: ";
  29.     cin>>rowery[i].rozmiar;
  30.     cout<<endl;
  31.     cout<<" Rower"<<i+1<<" Typ: "<<rowery[i].typ<<"; Marka: "<<rowery[i].marka;
  32.     cout<<"; Model: "<<rowery[i].model<<"; Rozmiar: "<<rowery[i].rozmiar<<endl<<endl;
  33.     }
  34.     return 0;
  35. }
  36.  
  37. void wyswietl_dane()
  38. {
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment