./

Nov 26, 2018 at 3:55pm
closed account (93UX216C)
.//
Last edited on Nov 26, 2018 at 6:18pm
Nov 26, 2018 at 4:11pm
this is a mess.

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.



Last edited on Nov 26, 2018 at 4:13pm
Topic archived. No new replies allowed.