#include <iostream> #include <cmath> using namespace std; struct Vect { double x; double y; }; Vect f(Vect v1, Vect v2) { Vect resultat; resultat.x = v1.x + v2.x; resultat.y = v1.y + v2.y; return resultat; } int main() { Vect a = {-7, 4}; Vect b = {-5, -7}; Vect c = f(a,b); cout << c.x << " " << c.y << endl; return 0; }