亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

CreateList

  • C:Documents and SettingsAdministrator桌面VC++多媒體特效制作百例CHAR10CreateList

    C:\Documents and Settings\Administrator\桌面\VC++多媒體特效制作百例\CHAR10\CreateList

    標簽: SettingsAdministrator CreateList Documents CHAR

    上傳時間: 2013-12-24

    上傳用戶:cainaifa

  • 數據結構實驗

    #include <stdio.h>   #include <stdlib.h> ///鏈式棧      typedef struct node   {       int data;       struct node *next;   }Node,*Linklist;      Linklist CreateList()   {       Linklist p;       Linklist h;       int data1;       scanf("%d",&data1);       if(data1 != 0)       {           h = (Node *)malloc(sizeof(Node));           h->data = data1;           h->next = NULL;       }       else if(data1 == 0)       return NULL;       scanf("%d",&data1);       while(data1 != 0)       {           p = (Node *)malloc(sizeof(Node));           p -> data = data1;           p -> next = h;           h = p;           scanf("%d",&data1);       }       return h;   }      void Outputlist(Node *head)   {       Linklist p;       p = head;       while(p != NULL )       {           printf("%d ",p->data);           p = p->next;       }       printf("\n");   }      void Freelist(Node *head)   {       Node *p;       Node *q = NULL;       p = head;       while(p != NULL)       {           q = p;           p = p->next;           free(q);       }   }      int main()   {       Node *head;       head = CreateList();          Outputlist(head);          Freelist(head);          return 0;   }   2.順序棧 [cpp] view plain copy #include <iostream>   #include <stdio.h>   #include <stdlib.h> ///順序棧   #define MaxSize 100      using namespace std;      typedef

    標簽: 數據結構 實驗

    上傳時間: 2018-05-09

    上傳用戶:123456..

主站蜘蛛池模板: 喀什市| 木里| 横山县| 敦煌市| 盐源县| 芒康县| 嘉祥县| 莎车县| 霍州市| 庆城县| 盘锦市| 阿图什市| 石门县| 同德县| 汶川县| 桃源县| 花莲市| 正蓝旗| 岳池县| 马公市| 江油市| 白山市| 墨竹工卡县| 万盛区| 监利县| 萝北县| 前郭尔| 洛隆县| 滦南县| 汝城县| 镇巴县| 呼图壁县| 盘锦市| 东乌珠穆沁旗| 博乐市| 山西省| 泸溪县| 台北市| 泽普县| 濮阳县| 甘泉县|