<<< | Index | >>> |
#include <iostream> #include "account.h" int main() { Account acct; acct.deposit( 100.00 ); try { acct.withdraw( 1000000.00 ); } catch ( AcctError& e ) { std::cout << "Error: " << e.problem << endl; return 1; } return 0; }
<<< | Index | >>> |