Initialize a struct when you create it using curly braces. List values in the order members were defined. This sets all members at once instead of assigning one by one. Example: Point p = {10, 20}; creates a Point with x = 10 and y = 20.
First value goes to first member. If you forget a value, it defaults to zero. You can also use Point p{10, 20}; or assign members after: Point p; p.x = 10;. Brace initialization is faster and catches errors at compile time.