三元阿克曼函数非递归(栈).pdfVIP

  • 62
  • 0
  • 约1.8千字
  • 约 3页
  • 2017-06-25 发布于河南
  • 举报
三元阿克曼函数非递归(栈)

#includestdio.h #include iostream.h #includestdlib.h int a,b,c,t,x,e,f,g; typedef struct { int data[15]; int top; }seqstack; int stacktop(seqstack *s,int *x) { *x=s-data[s-top]; return 0; } void initstack (seqstack *s) { s-top=0; } int push(seqstack *s,int x) { s-top++; s-data[s-top]=x; return 1; } int pop(seqstack *s,int *x) { *x=s-data[s-top]; s-top--; return 1; } void main() { seqstack s; initstack(s); cout请输入a ,b,cend

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档