int main() { using debts::Debt; using debts::showDebt; Debt glof = {{"agileluo","Glof"}, 120.05}; showDebt(glof); other(); }
int main(int argc, char const *argv[]) { using debts::Debt; using debts::showDebt; Debt golf = {{"Benny", "Goatsniff"}, 120.0}; showDebt(golf); other(); another(); return 0; }
int main(void) { using debts::Debt; using debts::showDebt; Debt gold = { {"Benny","Goatsniff"},120.0 }; showDebt(gold); other(); another(); }
int main(void) { using debts::Debt; using debts::showDebt; Debt golf = {{"Benny","GOatsniff"},120.0}; showDebt(golf); other(); another(); return 0; }
int main(void) { using debts::Debt; using debts::showDebt; Debt golf = { {"Benny", "Goatsniff"}, 120.0 }; showDebt(golf); other(); another(); // std::cin.get(); // std::cin.get(); system("PAUSE"); return 0; }
void other(void) { using namespace debts; Person dg = {"Doodles","Glister"}; showPerson(dg); cout<<endl; Debt zippy[3]; int i; for (i=0;i<3;i++) getDebt(zippy[i]); for (i=0;i<3;i++) showDebt(zippy[i]); cout << "Total debts:$"<< sumDebts(zippy,3) << endl; return; }
void other(void) { using std::cout; using std::endl; using namespace debts; Person dg = {"Doodles", "Glister"}; showPerson(dg); cout << endl; Debt zippy[3]; for (int i = 0; i < 3; ++i) { getDebt(zippy[i]); } for (int i = 0; i < 3; ++i) { showDebt(zippy[i]); } cout << "Total debt: $"<< sumDebt(zippy, 3) << endl; return; }
void other() { using std::cout; using std::endl; using namespace debts; Person dg = {"what", "java"}; showPerson(dg); cout << endl; const int N = 3; Debt zipper[N]; for(int i = 0; i < N; i++) { getDebt(zipper[i]); } for(int i = 0; i < N; i++) { showDebt(zipper[i]); } cout << "Total debt: $" << sumDebt(zipper, N) << endl; return; }