void getPlan(char& package, int& comics)
{
ifstream fin; //uninitialized local variable
ofstream fout; //uninitialized local variable
fin >> package >> comics; //what happens when you read from an uninitialized stream?!
}
you should pass in your existing streams just like you did in the others.
you make this same mistake in 1/2 the routines, and nothing is going to work until you fix that.