char类型实参与const char 形参不兼容



#include"MyStack.h"
#include<stdio.h>

void main()
{
 SqStack S;
 char x, y;
 InitStack(S);
 x = 'c'; y = 'k';
 Push(S, x); Push(S, 'a'); Push(S, y);
 Pop(S, x); Push(S, 't'); Push(S, x);
 Pop(S, x); Push(S, 's');
 while (!StackEmpty(S)) { Pop(S, y); printf(y); };
 printf(x);
}

x,y下面画横线,并提示错误:char类型实参与const char 形参不兼容

猜你喜欢

转载自blog.csdn.net/a13545564067/article/details/79780861