我的C

#include<stdio.h>#include "malloc.h"#define MAX 100typedef struct { int data[MAX]; int top;}SeqStack; SeqStack* Init_SeqStack(){ SeqStack *s; if( (s=(SeqStack*)malloc(sizeof(SeqStack)))==NULL) return NULL; s->top=-1; return s;}int Push_SeqStack(SeqStack * s,int x){ if(s->top==MAX-1) return 0; e...
程序 | 2010-11-12 01:07 | 阅读 469 次 | 评论 0 条
文章分类
文章归档
最新评论