#include using namespace std; #include "Rectangle.hpp" void foo(void) { Rectangle rect[2] = { {5,6}, {3,4} }; cout << "rect[0] area: " << rect[0].getArea() << endl; cout << "rect[1] area: " << rect[1].getArea() << endl; } int main() { int x=5, y=3; cout << "x: " << x << ", y: " << y << endl; foo(); cout << "x: " << x << ", y: " << y << endl; }