2001-12-10から1日間の記事一覧

ポインタのソート

明解C言語 入門編 > 12. 構造体 > ポインタのソート Python # coding: Shift_JIS NINSU = 5 def compare_height(x, y): if (x["height"] > y["height"]): return 1 if (x["height"] < y["height"]): return -1 return 0 def compare_weight(x, y): if (x["w…