Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Towar{
- private:
- string rodzaj;
- int ilosc;
- double cena;
- public:
- Towar (){
- rodzaj="jakis towar";
- Ilosc=0;
- cena=0;
- Towar(string rodzaj,int ilosc,double cena){
- this->rodzaj=rodzaj;
- this->ilosc=ilosc;
- this->cena=cena;
- }
- Towar(Towar &t){}
- string getRodzaj(){}
- int getilosc(){}
- double getCena(){}
- double ObliczWartoscTowaru(){}
- };
- main;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement