1998-04-10から1日間の記事一覧

構造体の動的配列 (realloc)

C

明解C言語 入門編 > 12. 構造体 > 構造体の動的配列 (realloc) C #include <stdio.h> #include <string.h> #include <alloc.h>#define NINSU 5typedef struct { char name[20]; int height; float weight; } gstudent;typedef int (*compare)(gstudent*, gstudent*);int compare_height(</alloc.h></string.h></stdio.h>…