Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- struct Rachunek {
- string nazwa_sklepu;
- float podatek;
- float cena;
- string nazwa_produktu;
- };
- Rachunek pierwszy;
- pierwszy.nazwa_sklepu="Comfort";
- pierwszy.podatek=23;
- pierwszy.cena=2000;
- pierwszy.nazwa_produktu="Szafka";
- cout<<pierwszy.nazwa_sklepu<<endl;
- cout<<pierwszy.podatek<<endl;
- cout<<pierwszy.cena<<endl;
- cout<<pierwszy.nazwa_produktu<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement