I have this project where I have to make an external function read_account that allows you to read any type of bank account from an input stream, its signature must be:
istream & read_account(istream &in, account * & a)
account is name with money in $
account_euro is name with money in $ and euro
account_yen is name with money in $ and yen
account_euro_and_yen is name with money in $, yen and euro
the input i need to have is
<acccount of: john $: 100 > // normal account or
<account of: steven $: 100 E: 250 > // account with euro and so on