Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm writing C++ code for a bank account, but I'm getting errors I don't understand since I've copied everything almost directly out of the textbook
I'm writing C++ code for a bank account, but I'm getting errors I don't understand since I've copied everything almost directly out of the textbook with changes to names.
Output Show output from: Build st\bankaccount.cpp (9): error C2653 'BankAccount': is not a class or namespace name st\bankaccount.cpp(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int st\bankaccount.cpp (11): error C2065: 'balance' undeclared identifier stlbankaccount.cpp (12): error C2065: 'interest': undeclared identifier st\bankaccount.cpp (13): warning C4508: 'bankaccount_witham: :BankAccount' function should return a value; 'void' return type assumed st\bankaccount .cpp(15): error C2510: 'BankAccount': left of ::' must be a class/struct/union st\bankaccount.cpp (17): error C2065: "balance": undeclared identifier st\bankaccount.cpp (19): error C2510: BankAccount: left of ':'must be a class/struct/union stbankaccount.cpp (21): error C2065: 'interest':undeclared identifier stbankaccount.cpp(23): error C2510 : 'BankAccount': left of '::' must be a class/struct/union st\bankaccount.cpp (25): error C2065: 'balance': undeclared identifier st\bankaccount.cpp (27): error C2510: 'BankAccount": left of'::' must be a class/struct/union stlbankaccount.cpp (29): error C2065: "balance': undeclared identifier st\bankaccount.cpp (31): error C2510: BankACcount': left of 'must be a class/struct/union st\bankaccount.cpp (33): error C2065: 'balance': undeclared identifier st\bankaccount.cpp (34): error C2065 "balance': undeclared identifier st\bankaccount.cpp (34): error C2065: 'interest': undeclared identifierStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started