0

This is driving me absolutely nuts. I've tried everything I've found on other posts here, and nothing works... this should NOT be this complicated.

#include <iostream>
#include <iomanip>

using namespace std;

class SavingsAccount
{
private:
    float savingsBalance;   
    static float annualInterestRate;

public:

    static void modifyInterestRate(float interestRate)
    {
        annualInterestRate = interestRate;
    }


};

int main()
{
    SavingsAccount::modifyInterestRate(.03);

    cout << endl;
    system("pause");
    return 0;
}

Getting an unresolved externals error.

Relevant
  • 148
  • 1
  • 15

0 Answers0