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

ポインタのソート

C++

明解C言語 入門編 > 12. 構造体 > ポインタのソート C++ #include <stdio.h> #include <string.h> #include <alloc.h>const int NINSU = 5;struct gstudent { char name[20]; int height; float weight; };typedef int (*compare)(gstudent*, gstudent*);int compare_height(gstudent* x</alloc.h></string.h></stdio.h>…