#include using namespace std; #include "Rectangle.hpp" Rectangle* foo(int w, int h) { Rectangle* rect_ptr = new Rectangle {w,h}; return rect_ptr; } int main() { int x=5, y=3; Rectangle* rect = foo(x,y); cout << "x: " << x << ", y: " << y << endl; cout << "area : " << rect->getArea() << endl; delete rect; }