int main()
{
    using debts::Debt;
    using debts::showDebt;
    Debt glof = {{"agileluo","Glof"}, 120.05};
    showDebt(glof);
    other();
}
Example #2
0
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;
}
Example #3
0
int main(void)
{
	using debts::Debt;
	using debts::showDebt;
	Debt gold = {
		{"Benny","Goatsniff"},120.0
	};
	showDebt(gold);
	other();
	another();
}
Example #4
0
int main(void)
{
	using debts::Debt;
	using debts::showDebt;

	Debt golf = {{"Benny","GOatsniff"},120.0};
	showDebt(golf);
	other();
	another();
	return 0;
}
Example #5
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;
}
Example #6
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;
}
Example #7
0
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;
}