All pastes #426401 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-06 03:32 UTC
rendered paste body
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;


void printheading(ofstream &);
void readdata(ifstream &, float &, float &, float &, float &);
void mpg(float &, float &, float &, ifstream &);


int main()
{
	ofstream out;
	ifstream in;
	int x;
	float odostart=0, odoend=0, gallons=0, histmpg=0;

	out.open("out.txt");
	in.open("data.dat");

	printheading(out);
	
	
	readdata(in,odostart,odoend,gallons,histmpg);

	

	




	return 0;
}

void printheading(ofstream &out)
{
	out << setw(20) << "Program 5"  << endl;
	out << setw(22) << "Elliott" << endl;
	out << setw(21) << "April.5.2007" << endl;
	out << "" << endl;
}

void readdata(ifstream &in, float &odostart, float &odoend, float &gallons, float &histmpg)
{
	in >> odostart >> odoend >> gallons >> histmpg;
}

void mpg(float &odostart, float &odoend, float &gallons, ifstream &in)
{
}