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

構造体の動的配列 (malloc)

C++

明解C言語 入門編 > 12. 構造体 > 構造体の動的配列 (malloc) 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(gs</alloc.h></string.h></stdio.h>…