类域问题啦....
class Account
{
typedef double Money;
//.....
private:
static Money _interestRate;
static Money initInterest();
};
Accont::Money Account::_interestRate = initInterest();
怎么也搞不明白 Money 为什么要用Account来限定修饰....
class Account
{
typedef double Money;
//.....
private:
static Money _interestRate;
static Money initInterest();
};
Accont::Money Account::_interestRate = initInterest();
怎么也搞不明白 Money 为什么要用Account来限定修饰....