I'm trying to write my interface and implement for the first time and it isn't working out. I have a class SavingsAccount in the .h with all the right functions and variables and I included this header file into the .cpp. I have SavingsAccount::fCalcMonthlySavings() { code} in the .cpp and fCalcMonthlySavings() is declared in the interface but it's giving me two errors pointing to this.
1.) overloaded function differs only by return type from 'void __thiscall SavingsAccount::fCalcMontlySavings(void)
2.) 'fCalcMonthlyInterest' : redefinition; different basic types.
Last question is, what are these called: SavingsAccount::fCalcMonthlySavings() { code }? I have no idea what their real name is, maybe someone can clue me in.
At this rate I'll never be a good programmer, I just suck ass period. I want to be a game programmer or designer but I can't see that anymore, I'm so discouraged with this complex alogrithm that I have no help or motivation anymore except John Carmack but he can't help me one on one. My instructor is getting sort of annoyed by me asking him so many questions so I'm going to lay off him. By the way, I'm 16 almost 17 if you're curious. I long to be in the entertainment business but I can't figure out what is right for me. I'm being stupid anymore and idolizing after people in there like John Carmack, Trent Reznor and all my other favorite artists or engineers. I dunno, I feel so hopeless, sad, and pathetic anymore.
1.) overloaded function differs only by return type from 'void __thiscall SavingsAccount::fCalcMontlySavings(void)
2.) 'fCalcMonthlyInterest' : redefinition; different basic types.
Last question is, what are these called: SavingsAccount::fCalcMonthlySavings() { code }? I have no idea what their real name is, maybe someone can clue me in.
At this rate I'll never be a good programmer, I just suck ass period. I want to be a game programmer or designer but I can't see that anymore, I'm so discouraged with this complex alogrithm that I have no help or motivation anymore except John Carmack but he can't help me one on one. My instructor is getting sort of annoyed by me asking him so many questions so I'm going to lay off him. By the way, I'm 16 almost 17 if you're curious. I long to be in the entertainment business but I can't figure out what is right for me. I'm being stupid anymore and idolizing after people in there like John Carmack, Trent Reznor and all my other favorite artists or engineers. I dunno, I feel so hopeless, sad, and pathetic anymore.