rendered paste body// Uebung6.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.//#include "stdafx.h"#include "conio.h"#include "stdlib.h"#include <iostream>using namespace std;template <class T>class Vektor {public: Vektor ( ) { x=0; y=0; } Vektor (T x1, T y1) { x=x1; y=y1; } T getx ( ) { return x; } // x-Koordinate T gety ( ) { return y; } // y-Koordinate Vektor operator+ (const Vektor<T>& v) const { return Vektor<T>(x+v.x,y+v.y); }private: T x, y; };template <class T>inline ostream& operator << (ostream& strm, Vektor<T>& v) { strm << v.getx() << "," << v.gety(); return strm; }//inline istream& operator >> (istream& strm, Vektor& b){ v.scanFrom (strm); return (strm); }template <class T> T maxi(T x, T y) { if (x>y) { return x; } else { return y; }}int _tmain(int argc, _TCHAR* argv[]){ //Vektor <string> vek_1 ("Ein ", "erstes "), vek_2 ("Template-", "Beispiel"); Vektor <int> vek_1 (5,7), vek_2 (9,2); cout << vek_1 + vek_2 << endl; return 0;}