Hi , I have been working on this for a while and I cant finish implementing this program. What Im doing is creating a program that prints out a bank statement. Has to list all deposits withdrawals and daily balance for each day. Then compute average daily balance, and minimum daily balance methods to compute interest of 0.5 percent per month. Assume month has 30 days. Input data is stored by date
Each transaction has the form;
Day Transaction Description
First entry should be in this form:
1 1143.24 Initial Balance
This is what I have and desperately need help getting the main function done and making it work
The compiler Xcode for mac is NOT showing any errors just saying build failed. So I cannot figure out what the problem is. I also am very new to this and cannot figure out how to debug it. Also, I dont know how to get any new created objects into the vectors transactions and day_bals? I know how to build the classes and such but can't get how to build the OBJECTS in main and get them to store in the vector. Then how I could print all transactions stored in the vectors?
Could you please wrap your code in [code]-tags?
It will make it more readable to us.
Also, try and be a little bit more specific about what's not working about it, it can help us help you faster.
I.e. of it throws compiler errors, say so (and copy them), if the program shows unexpected behaviour, say so (and tell us what it's supposed to do).
Thanks NmN, I edited it with the code tags, I didn't know to do that, Ive only posted here once. I appreciate the response though and I tried to add whatever else I could. However, the compiler only says BUILD FAILED, and no errors are reported.
the compiler only says BUILD FAILED, and no errors are reported.
I compiled it with VS2010 with only minor warnings. However, I did get linker errors.
1>junk1.obj : error LNK2019: unresolved external symbol "public: void __thiscall Transaction::read(void)const " (?read@Transaction@@QBEXXZ) referenced in function "public: void __thiscall Statement::read(void)" (?read@Statement@@QAEXXZ)
1>junk1.obj : error LNK2019: unresolved external symbol "public: __thiscall Transaction::Transaction(void)" (??0Transaction@@QAE@XZ) referenced in function "public: void __thiscall Statement::read(void)" (?read@Statement@@QAEXXZ)
Transaction::read is declared as a class member at line 15, but is not implemented. You have a read function at line 43, but it is not qualified as a member of the Transaction class. I assume you meant Transaction::read. There is also a const mismatch between line 15 and line 43.
The linker is also trying to tell you your implementation of the Transaction default constructor is missing (invoked at line 86).