123456789101112131415161718192021222324252627 |
- // namesp.h
- #include <string>
- // create the pers and debts namespaces
- namespace pers
- {
- struct Person
- {
- std::string fname;
- std::string lname;
- };
- void getPerson(Person &);
- void showPerson(const Person &);
- }
- namespace debts
- {
- using namespace pers;
- struct Debt
- {
- Person name;
- double amount;
- };
-
- void getDebt(Debt &);
- void showDebt(const Debt &);
- double sumDebts(const Debt ar[], int n);
- }
|