Produkttypen (Records)

R = A×B×C mathend000#

Kreuzprodukt mit benannten Komponenten:

typedef struct {
    A foo;
    B bar;
    C baz;
} R;

R x; ...  B x.bar; ...

erstmalig in COBOL (≤1960 mathend000#)

Übung: Record-Konstruktion (in C, C++)?



Johannes Waldmann 2014-03-31