C++: Templateklasse erstellen

Car.h

#ifndef H_CAR
#define H_CAR

template 
class Car {
public:
	Car(T m, PS p, W w) {
		model = m;
		ps = p;
		wheels = w;
	}

	void display() {
		std::cout << "Car Model " << model << "\nPS " << ps << "\nWheels " << wheels << std::endl;
	}

private:
	T model;
	PS ps;
	W wheels;

};
#endif

Main-App.cpp

// Maxfunktion als Template.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.
//

#include "stdafx.h"
#include "Car.h"
#include 
#include 

using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
	Car c("Skoda Superb", 170, 4);
	c.display();
	system("pause");
	return 0;
}