This is only the piece I of code omitted, from an earlier test.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#include <iostream>
#include "Account.h"
using namespace std;
/*
main()
{
Account savings(100, 6);
savings.deposit(20);
cout << savings.query() << endl;
if (savings.withdraw(50))
cout << "Successful withdraw.\n";
else cout << "Not enough in the account, $5 penalty charged.\n";
cout << savings.query() << endl;
if (savings.withdraw(100))
cout << "Successful withdraw.\n";
else cout << "Not enough in the account, $5 penalty charged.\n";
cout << savings.query() << endl;
}
*/
|
But as you can see that it completely commented out so that I don't declare two mains.
That's all the code I have. These are all my errors as shown
||=== Build: Debug in accountTest (compiler: GNU GCC Compiler) ===|
||In constructor 'Bank::Bank()':|
|5|error: no matching function for call to 'Account::Account(int)'|
|5|note: candidates are:|
|10|note: Account::Account(double, double)|
|10|note: candidate expects 2 arguments, 1 provided|
|9|note: Account::Account()|
|9|note: candidate expects 0 arguments, 1 provided|
|4|note: Account::Account(const Account&)|
|4|note: no known conversion for argument 1 from 'int' to 'const Account&'|
|5|error: no matching function for call to 'Account::Account(int)'|
|5|note: candidates are:|
|10|note: Account::Account(double, double)|
|10|note: candidate expects 2 arguments, 1 provided|
|9|note: Account::Account()|
|9|note: candidate expects 0 arguments, 1 provided|
|4|note: Account::Account(const Account&)|
|4|note: no known conversion for argument 1 from 'int' to 'const Account&'|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Every file is in the same directory and only open on one editor. Did you really compile my code as is?