All pastes #896011 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-08 07:32 UTC
rendered paste body
#include <iostream>
#include <fstream>
using namespace std;

int main() {

	const string DataFile	 = "expgrowin.txt";
	const string ResultsFile = "expgrowout.txt";

	double Reserve;
	double Rate;
	double AGRone;
	double AGRtwo;
	double AGRthree;
	double AGRfour;
	double AGRfive;

	ifstream In;

	In.open(DataFile.c_str());

	if (In.fail()) {
		cout << "Input file not found: " << DataFile << endl;
		cout << "Existing..." << endl;
		return EXIT_FAILURE;
	}

	while ( In ) {