چرا ?error unresolved externals
[PHP]#include<iostream>
using namespace std;
class SavingsAccount {
private:
long int SavingsBalance; //shows amount of deposit
public:
static double annualInterestRate; //Rate of annual interests
void calculateMonthlyInterest( SavingsAccount ,long int ); // Rate of monthly interests
static void modifyInterestRate( double & );
//SavingsAccount( );
void print( double )const;
};
void SavingsAccount :: modifyInterestRate( double &anlIntrst)
{ annualInterestRate = anlIntrst ;}
void SavingsAccount :: calculateMonthlyInterest ( SavingsAccount saver ,long int deposit )
//Calculate monthly interest
{
double monthlyInterest;
saver.SavingsBalance = deposit;
monthlyInterest =( saver.SavingsBalance * annualInterestRate )/12;
saver.SavingsBalance +=monthlyInterest;
print( monthlyInterest );
}
void SavingsAccount :: print( double monthlyInterest) const
{
cout<< "Monthly Interst: " << monthlyInterest
<< "Savings Balance: " << SavingsBalance;
}
void main()
{
SavingsAccount saver1;
double anlIntrst = 0.03;
saver1.modifyInterestRate ( anlIntrst );
saver1.calculateMonthlyInterest( saver1,200000 ) ;//200000->supply
}
[/PHP]سلام...
من از ارورای این برنامه سر در نمیارم:41:....
annualInterestRate:نرخ بهره ی سالانه
SavingsBalance:مقدار سپرده
calculateMonthlyInterest:
(annualInterestRate*SavingsAccount)/12:نرخ بهره ی ماهانه که باید به SavingsBalanceاضافه شود...
امیدوارم قابل فهم باشه!