Demo entry 6165954

data structure


Submitted by anonymous on Oct 06, 2016 at 06:14
Language: C. Code size: 881 Bytes.

typedef struct Media
    char number[12];
    char date[10];
    char type;
    char name[40];
    char index[50];
    char province[16];
} Media;

typedef struct Case
    char number[12];
    char date[10];
    char province[16];
    char defendant[24];
    char level;
    char charge;
    float amount;
    int punishment;
} Case;

typedef struct Province
    char province[16];
    char head[24];
    char tel[15];
} Province;

typedef struct MediaPrototype
    Media content;
    struct MediaPrototype * next;
} MediaPrototype;

typedef struct CasePrototype
    Case content;
    struct CasePrototype * next;
    struct MediaPrototype * media_head;
} CasePrototype;

typedef struct ProvincePrototype
    Province content;
    struct ProvincePrototype * next;
    struct CasePrototype * case_head;
} ProvincePrototype;

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).