// Example of using a raw struct with no member functions or constructors. We // typically use a struct only for cases like this where we are just grouping // data together into a single object. #include using namespace std; struct point { int x, y; }; int main() { point p1; point p2; p2.x = 3; p2.y = 18; cout << "p1 = (" << p1.x << ", " << p1.y << ")" << endl; cout << "p2 = (" << p2.x << ", " << p2.y << ")" << endl; return 0; }