• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            心如止水
            Je n'ai pas le temps
            posts - 400,comments - 130,trackbacks - 0
            #include<stdio.h>
            #include
            <stdlib.h>
            struct node
            {
                   
            int data;
                   
            struct node *next;
            }
            ;//結構類型的說明

            struct node *stack(struct node *head)
            {
                 
            int i;
                 
            struct node *p;
                 p 
            = (struct node*)malloc(sizeof(struct node));
                 p
            ->next = NULL;
                 
            for(i=0;i<10;i++)
                   
            {
                     head 
            = (struct node*)malloc(sizeof(struct node));
                     p
            ->data = i;
                     head
            ->next = p;
                     p 
            = head;;
                   }

                 
            return (head);
            }
            //

            struct node *team(struct node *head)
            {
                 
            int i;
                 
            struct node *tail,*p;
                 head 
            = (struct node*)malloc(sizeof(struct node));
                 tail 
            = head;
                 
            for(i=0;i<10;i++)
                   
            {
                     p 
            = (struct node*)malloc(sizeof(struct node));
                     p
            ->data = i;
                     tail
            ->next = p;
                     tail 
            = p;
                   }

                 tail
            ->next = NULL;
                 
            return (head);
            }
            //隊列

            void print_list(struct node *head)
            {
                 
            struct node *p;
                 p 
            = head->next;
                 printf(
            "Begin");
                 
            while(p != NULL)
                   
            {
                     printf(
            "->%d",p->data);
                     p 
            = p->next;
                   }

                 printf(
            "->End\n");
            }
            //鏈表輸出

            void detele_x(struct node *head,int x)
            {
                 
            struct node *p,*q;
                 p 
            = head;
                 q 
            = head->next;
                 
            while(q->data != x && q->next != NULL)
                   
            { p = q; q = q->next; }
                 
            if(q->data == x)
                   p
            ->next = q->next;
                 free(q);
            }
            //刪除數據域為x的結點

            void add_x_y(struct node *head,int x,int y)
            {
                 
            struct node *add_new,*p,*q;
                 add_new 
            = (struct node*)malloc(sizeof(struct node));
                 add_new
            ->data = x;
                 p 
            = head;
                 q 
            = head->next;
                 
            while(q != NULL && q->data != y)
                   
            { p = q; q = q->next; }
                 p
            ->next = add_new;
                 add_new
            ->next = q;
            }
            //在數據為y的結點前插入數據域為x的結點
            posted on 2010-01-06 18:22 lee1r 閱讀(227) 評論(0)  編輯 收藏 引用 所屬分類: 算法與數據結構
            亚洲欧洲精品成人久久曰影片| 久久久噜噜噜久久| 久久丫忘忧草产品| 久久精品中文字幕无码绿巨人 | 99精品久久久久久久婷婷| 久久精品国产只有精品66| 久久天天躁夜夜躁狠狠| 国产精品热久久无码av| 国产精品无码久久久久久| 久久这里只有精品首页| 999久久久无码国产精品| 久久天天躁狠狠躁夜夜avapp| 久久久久久午夜成人影院 | 久久99国产亚洲高清观看首页| 亚洲日韩欧美一区久久久久我| 久久久一本精品99久久精品66 | 无码人妻久久一区二区三区免费丨| 中文字幕成人精品久久不卡| 2021最新久久久视精品爱| 成人a毛片久久免费播放| 色妞色综合久久夜夜| 波多野结衣久久一区二区| 91亚洲国产成人久久精品| 久久久噜噜噜久久熟女AA片| 亚州日韩精品专区久久久| 久久强奷乱码老熟女网站| 精品久久久久久久久中文字幕| 久久久久久久久久久| 合区精品久久久中文字幕一区| 久久99精品国产麻豆婷婷| 日韩AV毛片精品久久久| 国产精品无码久久综合网| 亚洲国产精品一区二区久久| 久久国产精品久久| 国产精品久久久久国产A级| 日产精品久久久久久久性色| 亚洲狠狠婷婷综合久久蜜芽| 日韩精品久久久肉伦网站| 久久久精品2019免费观看| 久久青青草原综合伊人| 欧美精品一区二区久久|