Logo

Programming-Idioms

History of Idiom 5 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-08-20, 15:42:27

Version 5

2015-08-20, 15:42:50

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;
}

    
Code
struct Point{
    double x;
    double y;
}