D Language Structs Defining a new Struct


Example

To define the struct called Person with an integer type variable age, integer type variable height and float type variable ageXHeight:

struct Person {
    int age;
    int height;
    float ageXHeight;
}

Generally:

struct structName {
    /+ values go here +/
}