1999-08-07から1日間の記事一覧

構造体の動的配列 (malloc)

明解C言語 入門編 > 12. 構造体 > 構造体の動的配列 (malloc) Ruby NINSU = 5 def compare_height(x, y) return 1 if (x["height"] > y["height"]) return -1 if (x["height"] < y["height"]) return 0 end def compare_weight(x, y) return 1 if (x["weigh…