|
|
|
|
|
|
|
|
|
|
|
|
|
|
1>------ Build started: Project: Wk3, Configuration: Debug Win32 ------ 1>Build started 2/6/2013 12:20:55 AM. 1>InitializeBuildStatus: 1> Touching "Debug\Wk3.unsuccessfulbuild". 1>ClCompile: 1> SavingsAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(23): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(24): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(25): error C2065: 'balance' : undeclared identifier 1> BankAccountMain.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(26): error C2512: 'CheckingAccount' : no appropriate default constructor available 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(27): error C2512: 'SavingsAccount' : no appropriate default constructor available 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(31): error C2039: 'setAccountNumber' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(35): error C2039: 'getAccountNumber' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(41): error C2039: 'getAccountNumber' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(48): error C2039: 'depositMoney' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(49): error C2039: 'getAccountNumber' : is not a member of 'CheckingAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(8) : see declaration of 'CheckingAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(57): error C2039: 'withdrawMoney' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(60): error C2039: 'getAccountNumber' : is not a member of 'SavingsAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9) : see declaration of 'SavingsAccount' 1> BankAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.cpp(31): error C2562: 'BankAccount::depositMoney' : 'void' function returning a value 1> f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.h(19) : see declaration of 'BankAccount::depositMoney' 1> Generating Code... 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:03.49 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
As an example, lets look at the error concerning setAccountNumber(). The error says that it is not a member of SavingsAccount, and upon inspection I see that is the case; the members of SavingsAccount are those listed on lines 11-13 and 17-22 of SavingsAccount.hpp. There is no mention of the method setAccountNumber(). I have a strong suspicion of your intent, but see if my hint there helps you see the issue |
|
|
|
|
|
|
|
|
1>------ Build started: Project: Wk3, Configuration: Debug Win32 ------ 1>Build started 2/7/2013 2:50:21 AM. 1>InitializeBuildStatus: 1> Touching "Debug\Wk3.unsuccessfulbuild". 1>ClCompile: 1> SavingsAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C2236: unexpected 'class' 'CheckingAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C3381: 'CheckingAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C2236: unexpected 'class' 'SavingsAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C3381: 'SavingsAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(31): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(32): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(33): error C2065: 'balance' : undeclared identifier 1> CheckingAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C2236: unexpected 'class' 'CheckingAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C3381: 'CheckingAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C2236: unexpected 'class' 'SavingsAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C3381: 'SavingsAccount' : assembly access specifiers are only available in code compiled with a /clr option 1> BankAccountMain.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C2236: unexpected 'class' 'CheckingAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C3381: 'CheckingAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C2236: unexpected 'class' 'SavingsAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C3381: 'SavingsAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(57): warning C4305: 'argument' : truncation from 'double' to 'bool' 1> BankAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C2236: unexpected 'class' 'CheckingAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(9): error C3381: 'CheckingAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C2236: unexpected 'class' 'SavingsAccount'. Did you forget a ';'? 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C3381: 'SavingsAccount' : assembly access specifiers are only available in code compiled with a /clr option 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.cpp(39): error C2562: 'BankAccount::depositMoney' : 'void' function returning a value 1> f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.h(20) : see declaration of 'BankAccount::depositMoney' 1> Generating Code... 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:03.64 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
|
|
1>------ Build started: Project: Wk3, Configuration: Debug Win32 ------ 1>Build started 2/8/2013 2:37:46 PM. 1>InitializeBuildStatus: 1> Touching "Debug\Wk3.unsuccessfulbuild". 1>ClCompile: 1> SavingsAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.h(9): error C2504: 'BankAccount' : base class undefined 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(31): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(32): error C2065: 'balance' : undeclared identifier 1>f:\my documents\visual studio 2010\projects\wk3\wk3\savingsaccount.cpp(33): error C2065: 'balance' : undeclared identifier 1> CheckingAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\checkingaccount.h(7): error C2504: 'BankAccount' : base class undefined 1> BankAccountMain.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccountmain.cpp(57): warning C4305: 'argument' : truncation from 'double' to 'bool' 1> BankAccount.cpp 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.cpp(34): error C2562: 'BankAccount::depositMoney' : 'void' function returning a value 1> f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.h(20) : see declaration of 'BankAccount::depositMoney' 1>f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.cpp(38): error C2511: 'bool BankAccount::withdrawMoney(double)' : overloaded member function not found in 'BankAccount' 1> f:\my documents\visual studio 2010\projects\wk3\wk3\bankaccount.h(8) : see declaration of 'BankAccount' 1> Generating Code... 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:06.12 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |