All pastes #59433 Raw Edit

Untitled

public text v1 · immutable
#59433 ·published 2006-05-28 22:20 UTC
rendered paste body
             cout << "Iveskite kieki" << endl;
             int amount;
             cin >> amount;
             int income;
             Suit* suit;
             income = ((suit->getDryPrice()) * amount);
             cout <<"Valymas Jums kainuos" << income << endl;
-------------------------------------------------------------
void loadSuitData(SuitList& suitList)
{  
    ifstream inFileSuit("suits.dat");
    int sizec;
    inFileSuit >> sizec;
    for(int t=0; t<sizec; t++)
    {
        string name;
        double outlay;
        int dryPrice;
        inFileSuit >> name;
        inFileSuit >> outlay;
        inFileSuit >> dryPrice;
        suitList.push_back(new Suit(name, outlay, dryPrice));
// cia dryPrice - OK
    }
    inFileSuit.close();
}
--------------------------------------------------------------
class Stuff;

class Clean
{
private:
    Stuff* stuff;
    std::string date;
    int amount;
    int income;
public:
    Clean(Stuff* stuff, std::string& date, int amount, int income);    
    Stuff* getStuff()                     {return stuff;}
    std::string getDate()                 {return date;} //const
    int getIncome()                       {return income;}//const
    int getAmount()                       {return amount;}//const
    int addIncome(int i)                  {return income += i;}
    void print();
};