Im extending a old program I've made. Im changing all the static arrays into dynamic arrays and using pointers aswell.
The program is a transaction jar which functions as if three people are out on a dinner then one of the three may pay for all of them, and then someone else pays for the next time's activity, so if the dinner costs 120, then person B and C are in a 40 debt each to person A.
I thought that I just should change the first (Transaction) class first and make the program work with that, and then change the rest of the program. I tried add a copy-, and a assignment constructor and a destructor. However I just got runtime errors so I feel pretty lost where I´ve failed.
I'd gladly accept some input.
TransactionJar_Dyn.cpp is the file im using with infile "pot.txt", and the program im using is Code::Blocks 10.05