有一个头文件stack.h
:
typedef char ElemType;
typedef struct{
ElemType data[MaxSize];
int top;
} SqStack;
int Push_Sq(SqStack *s, ElemType e);
int Pop_Sq(SqStack *s, ElemType *e);
int GetTop_Sq(SqStack *s, ElemType *e);
现在我有一些源文件,包括这个头文件,我想用int
forElemType
代替char
,这可能吗?我该怎么办?(我不想修改原来的头文件)