ACHIYAMA BLOG

Microsoft製品に関する備忘録

2017-01-01から1年間の記事一覧

C言語でキューを表現

#include<stdio.h> #include<stdlib.h> #include<string.h> struct cell { double num; struct cell *next; }; int main(void) { struct cell *listhead = NULL; struct cell *listtail = NULL; struct cell *p, *q; char str[128]; while (1) { printf("操作を選択してください (enq/deq/</string.h></stdlib.h></stdio.h>…