2016-03-22 構造体の宣言 c言語 coffeeという構造体の宣言 struct coffee{ int x; float y; }; struct coffee型の 変数mochaを宣言 struct coffee{ int x; float y; } mocha; struct coffeeの型名をcoffeeとして定義 typedef struct coffee{ int x; float y; } coffee;