请问这段程序有什么错误
来源:百度知道 编辑:UC知道 时间:2024/09/28 11:16:12
#define N 3
#include<stdlib.h>
struct Stack{
char Array[N];
int top;
}StaN,*s;
s=&StaN;
这只是一段程序 并不能运行的请问这样声明对不对 谢谢
#include<stdlib.h>
struct Stack{
char Array[N];
int top;
}StaN,*s;
s=&StaN;
这只是一段程序 并不能运行的请问这样声明对不对 谢谢
这样写是对的
#define N 3
#include<stdlib.h>
typedef struct Stack{
char Array[N];
int top;
}StaN,*s;
其中你s = &StaN;就不对
重新装下就行了
没有main()吗?