Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Towar
- {
- public:
- float cena;
- };
- class Fotel : public Towar
- {
- float nazwa;
- };
- class Koszyk
- {
- int DodajDoKoszyka(float ile, float cena)
- {
- float koszt;
- cout << "Ile chcesz dodac tych elementow?" << endl;
- cin >> ile;
- koszt = ile * cena;
- return koszt;
- }
- int WartoscTowaru()
- {
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement