![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
棧
爱码仕1024
目前专注于Java后台开发
展开
-
[Error] base operand of '->' has non-pointer type 'stac
犯错=成长编写顺序栈时出现下边的提醒31[Error] base operand of '->' has non-pointer type 'stack'直接上代码(错误版本):#include <stdlib.h>#include <stdio.h>#define SIZE 1000typedef struct{ int data[SIZE]; int top;}stack原创 2017-06-16 08:49:13 · 16384 阅读 · 4 评论 -
行编辑程序
加油加油~//行编辑程序 #include <stdio.h>#include <stdlib.h># define MAX 1000typedef struct { char data[MAX]; int top;}stack;void Init(stack &s){ s.top =-1;}void Push(stack &s,char e){ if(s.to原创 2017-06-16 18:31:54 · 1691 阅读 · 1 评论