摘要: #include struct stack { char space[512]; int top; }; struct stack stack = { { 0 }, 0 }; int isempty(){ return stack.top == 0; } int isfull(){ return stack.top == 512; } void push(cha... 阅读全文
posted @ 2016-09-07 11:02 于光远 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 三个函数的申明分别是: void* realloc(void* ptr, unsigned newsize); void* malloc(unsigned size); void* calloc(size_t numElements, size_t sizeOfElement); 都在stdlib. 阅读全文
posted @ 2016-09-07 09:35 于光远 阅读(174) 评论(0) 推荐(0) 编辑