Logo

Programming-Idioms

History of Idiom 5 > diff from v3 to v4

Edit summary for version 4 by :

Version 3

2015-08-19, 14:33:48

Version 4

2015-08-20, 15:42:27

Idiom #5 Create a 2D Point data structure

Declare a container type for two floating-point numbers x and y

Idiom #5 Create a 2D Point data structure

Declare a container type for two floating-point numbers x and y

Code
struct Point{
    int x;
    int y;
}