I'm trying to run a C++ program with a class, but when I try to compile it, I get a message that says that no such file or directory exists. Here's the code I have so far:
Code:#include <cstdlib> #include <iostream> #include "savingsAccount.h" #include <conio.h> using namespace std; int main() { SavingsAccount saver1(2000.00); SavingsAccount saver2(3000.00); SavingsAccount::modifyIntererestRate(0.03); // sets the annualInterestRate to 3% cout << "First month with interest balance:\n\n"; // calculates the monthly interest and print the new balances saver1.calculateMonthlyInterest(); cout << "Saver 1 Savings Balance: $" << saver1.GetBalance() << "\n"; saver2.calculateMonthlyInterest(); cout << "Saver 2 Savings Balance: $" << saver2.GetBalance() << "\n"; cout << endl; SavingsAccount::modifyIntererestRate(0.04); // sets the annualInterestRate to 4% cout<< "Second month with interest balance:\n\n"; // and calculate the next month's interest and print the new balances saver1.calculateMonthlyInterest(); cout << "Saver 1 Savings Balance: $" << saver1.GetBalance() << "\n"; saver2.calculateMonthlyInterest(); cout << "Saver 2 Savings Balance: $" << saver2.GetBalance() << "\n"; cout << endl; getch(); return 0; }