Search found 2 matches

by hina
Sat Dec 17, 2005 7:49 pm
Forum: Volume 2 (200-299)
Topic: 222 - Budget Travel
Replies: 17
Views: 8895

budget travel solution

#include<iostream.h>
#include<iomanip.h>

long double tank_size, max_ride, mpg, cost_at_dest, dist;
int stat_num, min;

struct gas_stat
{
long double dist_from_orig;
long double cost_per_gallon;
};
gas_stat G[52];

void Calculate(int index, long double dist1, int cost_so_far)
{
int ptr ...
by hina
Sat Dec 17, 2005 7:48 pm
Forum: Volume 2 (200-299)
Topic: 222 - Budget Travel
Replies: 17
Views: 8895

budget travel solution

#include<iostream.h>
#include<iomanip.h>

long double tank_size, max_ride, mpg, cost_at_dest, dist;
int stat_num, min;

struct gas_stat
{
long double dist_from_orig;
long double cost_per_gallon;
};
gas_stat G[52];

void Calculate(int index, long double dist1, int cost_so_far)
{
int ptr ...

Go to advanced search