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

ポインタのソート

明解C言語 入門編 > 12. 構造体 > ポインタのソート 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["weight"] > y["…