Site hosted by Angelfire.com: Build your free website today!
#include 
#include 
#include "vector.h"



int main()
{
	vector  United_States(10,0);
	vector  Japan(10,0);
	vector  Germany(10,0);
	vector  United_Kingdom(10,0);
	United_States = {264.32, 264.11, 264.03, 263.39, 262.79, 262.65, 262.04, 262.38, 261.87, 261.93};
	Japan = {24.23, 24.23, 24.23, 24.23, 24.23, 24.23, 24.23, 24.23, 24.23, 24.23};
	Germany = {95.18, 95.18, 95.18, 95.18, 95.18, 95.18, 95.18, 95.18, 95.18, 95.18};
	United_Kingdom = {18.84, 19.03, 19.01, 19.01, 19.03, 19.03, 19.01, 19.01, 19.00, 18.99};
	int index;
	cout << setprecision(2);
	cout.setf(ios::showpoint);
	cout.setf(ios::fixed);
	cout << "              US       Japan    Germany      UK\n";
	for(index = 0; index <= 9; index++)
	{
		cout << "   " << 1980 + index << ":" << setw(10) << United_States[index] << setw(10) << Japan[index] << setw(10) << Germany[index] << setw(10) << United_Kingdom[index] << '\n';
	}

	return 0;
}