#include using namespace std; class Vehicle{ int passengers; int

#include <iostream>
using namespace std;
class Vehicle{
	int passengers;
	int mpg;
	int fuelcap;
public:
	Vehicle(int p,int m,int f){
		passengers=p;
		mpg=m;
		fuelcap=f;
	}
	int range(){
		return mpg*fuelcap;
	}
	int get_passengers(){
		return passengers;
	}
	int get_mpg(){
		return mpg;
	}
	int get_fuelcap(){
		return fuelcap;
	}
};

int main()
{
	int a,b,c;
	cout<<"Enter first car characteristics (3 integer numbers):\n";
        cin>>a>>b>>c;
	Vehicle minivan(a,b,c);
	cout<<"Enter second car characteristics (3 integer numbers):\n";
        cin>>a>>b>>c;
	Vehicle sportcar(a,b,c);
	int range1,range2;
	range1=minivan.range();
	range2=sportcar.range();
	cout<<range1<<endl<<range2;
	system("PAUSE");
	return 0 ;
}

Как-то так. Код я не проверял, но должен работать.