Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
8
9
10
11
12
13
struct Point {
double x;
double y;
};
int main() {
Point p1; // instantiation of object p1
Point p2; // instantiation of object p2
p1.x = 3;
p1.y = 0;
}
Run