31.12.2014 Views

Paskaitų konspektai - Matematikos ir Informatikos fakultetas ...

Paskaitų konspektai - Matematikos ir Informatikos fakultetas ...

Paskaitų konspektai - Matematikos ir Informatikos fakultetas ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

for (int i = 0; i < food->getSellingCount(); i++)<br />

food->getSelling(i)->print();<br />

void showProfit(SellingList& sellingList)<br />

{<br />

string dateFrom;<br />

string dateTo;<br />

cout dateTo;<br />

double totalProfit = 0;<br />

SellingList::iterator iter = sellingList.begin();<br />

for (; iter != sellingList.end(); iter++)<br />

if (dateFrom getDate() &&<br />

(*iter)->getDate() print();<br />

totalProfit += (*iter)->getProfit();<br />

}<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!