Unresolved external symbol error in c++

前端 未结 2 1115
甜味超标
甜味超标 2021-01-27 10:27

I am trying to do a simple hw problem involving namespace, static data members and functions. I am getting an unresolved external symbol error

Error   1   erro         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 10:40

    you need a line in your cpp file

    double JWong::SavingsAccount::annualInterestRate = 0.7;  // or whatever you like 
    

提交回复
热议问题