#include <stdio.h>
#include <stdbool.h>
#include "config.h"
#include "stackarr.h"
int main(int argc, char* argv[]) {
DATATYPE seqence[] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
mini_stack_ptr_t mini = NULL;
// bugs here ;)
for (int i=0; i<sizeof seqence / sizeof(DATATYPE); i++)
push(mini, seqence[i]);
while(!empty(mini))
printf("%d\n", pop(mini));
return 0;
}
有大佬知道輸出結果嗎,怎么分析,求教
uj5u.com熱心網友回復:
不是987654321?轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/47686.html
標籤:C++ 語言
上一篇:為什么輸入任何數結果都是0?
下一篇:c#
