引用 | 編輯
karen7710
2007-06-27 20:25 |
樓主
▼ |
||
x0
利用以下的堆疊模擬程式(課本範例),將原本放入堆疊中的字母a、b、c、d、e,改成用一個字元陣列"I will be back"來做 請問大大要怎麼改呢? #include <stdio.h> #include <stdlib.h> #define BUFSIZE 255 /*定義陣列容量*/ char pop(void); /*放入堆疊資料的函式*/ void push(char); /*取出堆疊資料的函式*/ void dump(void); /*顯示堆疊資料的函式*/ static char stack; /*以陣列模擬堆疊空間*/ static int s .. 訪客只能看到部份內容,免費 加入會員 x0
|