You're trying to swim against the (file)stream.
ifstream income;
income.open ("Income.txt", ios::in);
ifstream fixed_expenses;
fixed_expenses.open ("Fixed Expenses.txt", ios::in);
ifstream variable_expenses;
variable_expenses.open ("Variable Expenses.txt", ios::in);
You are opening file handles of type ifstream, which are by default input handles. So, you don't need the "ios::in" mode parameters.
But, you seem to be trying to use them as output (writing) file handles. Perhaps what you really meant to do this in your declarations is:
ofstream income;
income.open ("Income.txt" );
ofstream fixed_expenses;
fixed_expenses.open ("Fixed Expenses.txt" );
ostream variable_expenses;
variable_expenses.open ("Variable Expenses.txt" );
// then later in the code
income << "Paycheck: " << paycheck << endl;
//etc.
ofstream handles are, by default, output handles, so "ios::out" is not necessary.
Val
I am in mourning for my country.