My problem is when i try to call the get function i have no idea how to get the data from my file. it says that it cant convert fstream to int. int is my function parameter. so how do i get it to properly get it from the file?
main.h
It would be good to see a sample of the file you're reading from, but perhaps your solution is to read the data from the file into a string and then parse your string into pieces and assign those pieces to the correct variables.
I would also suggest dropping a lot more comments in your code, especially if you want other people to try to read through it and help you.