2009-04-24から1日間の記事一覧
よく忘れて本を見るのでメモ typedef struct { int c; int d; } hoge_t; typedef struct { int a; int b; hoge_t hoge; } piyo_t; 入れ子の構造体を用意 初期値を順番に書く方法 piyo_t p1 = { 1,2,{3,4} }; // 普通な書き方 piyo_t p2 = { 1,2, 3,4 }; // …
よく忘れて本を見るのでメモ typedef struct { int c; int d; } hoge_t; typedef struct { int a; int b; hoge_t hoge; } piyo_t; 入れ子の構造体を用意 初期値を順番に書く方法 piyo_t p1 = { 1,2,{3,4} }; // 普通な書き方 piyo_t p2 = { 1,2, 3,4 }; // …