Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void wyswietl_dane();
- struct rower
- {
- char typ[20];
- char marka[20];
- char model[20];
- unsigned int rozmiar;
- }; rower rowery[5];
- int main()
- {
- for(int i=0;i<=5;i++){
- cout<<endl;
- cout<<" Podaj typ: ";
- cin>>rowery[i].typ;
- cout<<endl;
- cout<<" Podaj marke: ";
- cin>>rowery[i].marka;
- cout<<endl;
- cout<<" Podaj model: ";
- cin>>rowery[i].model;
- cout<<endl;
- cout<<" Podaj rozmiar: ";
- cin>>rowery[i].rozmiar;
- cout<<endl;
- cout<<" Rower"<<i+1<<" Typ: "<<rowery[i].typ<<"; Marka: "<<rowery[i].marka;
- cout<<"; Model: "<<rowery[i].model<<"; Rozmiar: "<<rowery[i].rozmiar<<endl<<endl;
- }
- return 0;
- }
- void wyswietl_dane()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment