athos@201: #include <xy.h>
athos@201: #include <iostream>
athos@513: #include <vector>
athos@201: using namespace std;
athos@207: using namespace hugo;
athos@513: 
athos@513: 
athos@201: int main()
athos@201: {
athos@207: 
athos@240: 	cout << "Kérek szépen egy egész számot!" << endl;
athos@207: 	int s;
athos@207: 	cin >> s;
athos@207: 
athos@207: 	cout << "Kerek sok sikvektort." << endl;
athos@201: 
athos@201: 	xy<int> osszeg;
athos@207: 	xy<int> kul;
athos@201: 	xy<int> z;
athos@201: 
athos@201: 	vector< xy<int> > v;
athos@207:  
athos@201: 	while(cin >> z) {
athos@201: 		v.push_back(z);
athos@201: 		osszeg += z;
athos@207: 		kul -= z;
athos@201:        		cout << "Az összeg aktualisan: " << osszeg << endl;
athos@207:        		cout << "A különbség aktualisan: " << kul << endl;
athos@201: 	}
athos@201: 
athos@201: 	cout << "A kovetkezo szamokat szoroztam ossze:" << endl;
athos@201: 	for(unsigned int i=0; i<v.size(); ++i) {
athos@201: 	  cout << v[i] << ", A normanégyzete: " << v[i].normSquare() <<endl;
athos@207: 	  cout << v[i] << " " << s << " szorosa " << v[i]*s <<endl;
athos@207: 	  cout << v[i] << " " << s << " edrésze " << v[i]/s <<endl;
athos@201: 	}
athos@207: 	if (v.size()>1){
athos@207: 	  cout << "Az elsö kettö szorzata: " << v[0]*v[1] << endl;
athos@207: 	}
athos@207: 	
athos@201: 	cout << "Eleg nehez volt." << endl;
athos@201: }