数据结构两道题,好心人拜托。。。

来源:百度知道 编辑:UC知道 时间:2024/05/22 13:39:31
我现在没有分数,有了会追加的,谢谢各位!
一、这个是填空题
Struct dbseqstack;
Int maxun;
Int top [2];
Data type s;
{
Typedef struct dbseqstack pdbseqstack;
Int push ds(pdbseqstack pdbstack int I putetype x);
}
If (pdbstack-top[0]==pdbstack-top[1]-1);
Printf(overflow!\”n”);
Return 0;
{
If (i!=0(|i!=1|);
Printf (“the parameter of i is wrong!/n);
Return 0;
If i==0;
(1);
(2);
}
Else
(3);
(4);
Return 1;
Pust –ds;
Putetype pop_ds(pdbseqstack pdbstack);
If (i!=0 |i|=1);
Printf (the parameter is wrong!;
Return (null);
If i==0;
If pdbstacktop[0]);
Printf (no 0 stack is wnderflow !n”);
Return (null);
Else
(5);
(6);
If (pdbstack-top[(1)=m];
Printf (stack is overflow!);
Return null;
Else;
(7);
(8);
Popds;

二、这个是程序说明题
struct node;
typedef struct node pnode;

你的代码是复制的还是打上来的 怎么好像不像原文? 对照下 是不是和原题有文字出入?
--------------------------
程序中错几个标点 或 符号 还了得.....
原流程都变了 程序就无法理解了