#include <iostream>
using namespace std;

struct Point {
    int x;
    int y;
};

int main() {
    Point p;
    Point* ptr = &p;

    cin >> ptr -> x >> ptr -> y;

    cout << "(" << ptr->x << ", "<< ptr->x <<")"<<endl;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: