Attempting to make a bank account program. Here is the beginning of the program
ID: 3863795 • Letter: A
Question
Attempting to make a bank account program. Here is the beginning of the program as the rest of the future features are commented out. I am mostly trying to get the vector and structures working correctly so that values are actually being stored to each of the variables correctly to create multiple accounts with the makeAccount() function. I am getting an error at line 66 that bankAccount is not declared in the scope. (I am using a main.cpp a function_file.cpp and a header_file.h). There may be something wrong with my syntax for the vector definition/location and am not very familiar with templates but both are necessary for this assignment. All help appreciated
Thanks
7 using namespace std; 9 template typename types truct> //where should this and the prototype go? 10 void make Account. (vector type Struct &); 11 12 vectorExplanation / Answer
You are getting the error because you have misspelled the name of the variable at line 66. The variable is declared as bankaccounts (plural) but you have typed it as bankaccount. The error should go by correcting it.
I have a suggestion for you. It would be ideal to paste code lines as text rather than image so that the expert answering your question can easily compile the code on their computer and give better answer to the questions.
Please rate the answer if it helped. Thanks
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.