IntelliSense: 返回值类型与函数类型不匹配
typedefenumBoolean{FALSE,TRUE}Boolean;typedefstructStack{inttop;StackEntryentry[MAXST...
typedef enum Boolean{FALSE,TRUE}Boolean;
typedef struct Stack
{
int top;
StackEntry entry[MAXSTACK];
}Stack;
Boolean StackEmpty(Stack *s);
Boolean StackFull(Stack *s);
Boolean StackEmpty(Stack *s)
{
return ((s->top)<=0);
}
Boolean StackFull(Stack *s)
{
return ((s->top)>=MAXSTACK);
}
vs2010显示说IntelliSense: 返回值类型与函数类型不匹配
问题到底在哪? 展开
typedef struct Stack
{
int top;
StackEntry entry[MAXSTACK];
}Stack;
Boolean StackEmpty(Stack *s);
Boolean StackFull(Stack *s);
Boolean StackEmpty(Stack *s)
{
return ((s->top)<=0);
}
Boolean StackFull(Stack *s)
{
return ((s->top)>=MAXSTACK);
}
vs2010显示说IntelliSense: 返回值类型与函数类型不匹配
问题到底在哪? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询