?? stack.h
字號:
#define maxsize 8
typedef struct{
char data[maxsize];
int top;
}node;
void init(node *p)
{
p->top=0;
}
void push(node *st,char x)
{
if(st->top==maxsize)
{
printf("\n the sequence stack is full!");
}
st->data[st->top]=x;
st->top++;
}
char pop(node *st)
{
st->top--;
return st->data[st->top];
}
void d_c(int k,char *p)
{
node *s;
char c;
init(s);
c=(char)(k%10+'0');
push(s,c);
while(k/10)
{
k=k/10;
c=(char)(k%10+'0');
push(s,c);
}
while(s->top)
*(p++)=pop(s);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -