Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct rachunek
- {
- string nazwasklepu;
- int podatek;
- int cena;
- string nazwaproduktu;
- };
- int main()
- {
- rachunek struktura;
- struktura.nazwasklepu="zabka";
- struktura.podatek=23;
- struktura.cena=4;
- struktura.nazwaproduktu="Sok bananowy";
- cout << struktura.nazwasklepu << endl << struktura.podatek << endl << struktura.cena << endl << struktura.nazwaproduktu << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement