$ cat a.cpp #include struct Point { Point(int a_x, int a_y) : x(a_x), y(a_y) {} int x; int y; }; int main() { Point point(5,6); printf("%d,%d\n", point.x, point.y); return 0; } $ g++ -o a a.cpp && a 5,6