2012-01-06から1日間の記事一覧
ここまでに出て来たソート、サーチのプログラムは全て数値のみを対象として 操作されていたが、もちろん配列でも同じように書けるよ的な応用。 本の検索がお題。[book_seach.c] #include <stdio.h> #include <stdlib.h> #define N 5 typedef struct { char *title; char *author</stdlib.h></stdio.h>…
ここまでに出て来たソート、サーチのプログラムは全て数値のみを対象として 操作されていたが、もちろん配列でも同じように書けるよ的な応用。 本の検索がお題。[book_seach.c] #include <stdio.h> #include <stdlib.h> #define N 5 typedef struct { char *title; char *author</stdlib.h></stdio.h>…